Skip to content

Commit

Permalink
cmake: validate xpack_platform_compile_definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Oct 23, 2023
1 parent 4de3322 commit bd28efb
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/platform-native/cmake/platform-options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ message(VERBOSE "Including 'tests/platform-native/cmake/platform.cmake'...")

# Validate.
if(NOT DEFINED xpack_platform_compile_definition)
message(FATAL_ERROR "Define xpack_platform_compile_definition in platform*/cmake/dependencies.cmake")
message(FATAL_ERROR "Define xpack_platform_compile_definition in ${PLATFORM_NAME}/cmake/dependencies.cmake")
endif()

# -----------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ message(VERBOSE "Including 'tests/platform-qemu-cortex-a15/cmake/platform.cmake'

# Validate.
if(NOT DEFINED xpack_platform_compile_definition)
message(FATAL_ERROR "Define xpack_platform_compile_definition in platform*/cmake/dependencies.cmake")
message(FATAL_ERROR "Define xpack_platform_compile_definition in ${PLATFORM_NAME}/cmake/dependencies.cmake")
endif()

# -----------------------------------------------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions tests/platform-qemu-cortex-a72/cmake/platform-options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ message(VERBOSE "Including 'tests/platform-qemu-cortex-a72/cmake/platform.cmake'

# -----------------------------------------------------------------------------

# Validate.
if(NOT DEFINED xpack_platform_compile_definition)
message(FATAL_ERROR "Define xpack_platform_compile_definition in ${PLATFORM_NAME}/cmake/dependencies.cmake")
endif()

# -----------------------------------------------------------------------------

# Define the platform library.
add_library(platform-qemu-cortex-a72-interface INTERFACE EXCLUDE_FROM_ALL)

Expand Down
7 changes: 7 additions & 0 deletions tests/platform-qemu-cortex-m0/cmake/platform-options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ message(VERBOSE "Including 'tests/platform-qemu-cortex-m0/cmake/platform.cmake'.

# -----------------------------------------------------------------------------

# Validate.
if(NOT DEFINED xpack_platform_compile_definition)
message(FATAL_ERROR "Define xpack_platform_compile_definition in ${PLATFORM_NAME}/cmake/dependencies.cmake")
endif()

# -----------------------------------------------------------------------------

# Define the platform library.
add_library(platform-qemu-cortex-m0-interface INTERFACE EXCLUDE_FROM_ALL)

Expand Down
7 changes: 7 additions & 0 deletions tests/platform-qemu-cortex-m7f/cmake/platform-options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ message(VERBOSE "Including 'tests/platform-qemu-cortex-m7f/cmake/platform.cmake'

# -----------------------------------------------------------------------------

# Validate.
if(NOT DEFINED xpack_platform_compile_definition)
message(FATAL_ERROR "Define xpack_platform_compile_definition in ${PLATFORM_NAME}/cmake/dependencies.cmake")
endif()

# -----------------------------------------------------------------------------

# Define the platform library.
add_library(platform-qemu-cortex-m7f-interface INTERFACE EXCLUDE_FROM_ALL)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ message(VERBOSE "Including 'tests/platform-qemu-riscv-rv32imac/cmake/platform.cm

# -----------------------------------------------------------------------------

# Validate.
if(NOT DEFINED xpack_platform_compile_definition)
message(FATAL_ERROR "Define xpack_platform_compile_definition in ${PLATFORM_NAME}/cmake/dependencies.cmake")
endif()

# -----------------------------------------------------------------------------

# Define the platform library.
add_library(platform-qemu-riscv-rv32imac-interface INTERFACE EXCLUDE_FROM_ALL)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ message(VERBOSE "Including 'tests/platform-qemu-riscv-rv64imafdc/cmake/platform.

# -----------------------------------------------------------------------------

# Validate.
if(NOT DEFINED xpack_platform_compile_definition)
message(FATAL_ERROR "Define xpack_platform_compile_definition in ${PLATFORM_NAME}/cmake/dependencies.cmake")
endif()

# -----------------------------------------------------------------------------

# Define the platform library.
add_library(platform-qemu-riscv-rv64imafdc-interface INTERFACE EXCLUDE_FROM_ALL)

Expand Down

0 comments on commit bd28efb

Please sign in to comment.