mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-04 21:23:57 +08:00
cmake: removed config_ prefix
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
+4
-4
@@ -112,16 +112,16 @@ set(package-contact "px4users@googlegroups.com")
|
|||||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# cmake modules
|
# Validate build configuration and build
|
||||||
#
|
#
|
||||||
if (NOT NESTED_CMAKE_CALL)
|
if (NOT NESTED_CMAKE_CALL)
|
||||||
message(STATUS "IN TOP")
|
message(STATUS "IN TOP")
|
||||||
if (EXISTS ${CMAKE_SOURCE_DIR}/cmake/configs/config_${CONFIG}.cmake)
|
if (EXISTS ${CMAKE_SOURCE_DIR}/cmake/configs/${CONFIG}.cmake)
|
||||||
|
|
||||||
# Get the toolchain information
|
# Get the toolchain information
|
||||||
include(configs/config_${CONFIG})
|
include(configs/${CONFIG})
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "build config not found: config_${CONFIG}.cmake")
|
message(FATAL_ERROR "build config not found: ${CONFIG}.cmake")
|
||||||
endif()
|
endif()
|
||||||
if (NOT "${USE_TOOLCHAIN}" STREQUAL "")
|
if (NOT "${USE_TOOLCHAIN}" STREQUAL "")
|
||||||
set(TOOLCHAIN -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake/toolchains/${USE_TOOLCHAIN}.cmake)
|
set(TOOLCHAIN -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake/toolchains/${USE_TOOLCHAIN}.cmake)
|
||||||
|
|||||||
Reference in New Issue
Block a user