cmake: removed config_ prefix

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-09-10 20:02:31 -07:00
parent 0047b38c54
commit 98897960e1
12 changed files with 4 additions and 4 deletions
+4 -4
View File
@@ -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)