Simplified config handling.

This commit is contained in:
James Goppert
2015-09-10 23:53:25 -04:00
parent 3d52582dd7
commit ec209f13f0
7 changed files with 211 additions and 253 deletions

View File

@@ -73,8 +73,8 @@
# ---------------------------------------------------------------------------
#
# * Never set global variables in an included cmake file,
# you may only define functions. This excludes Toolchain files. This
# makes it clear to the user when variables are being set or targets
# you may only define functions. This excludes config and Toolchain files.
# This makes it clear to the user when variables are being set or targets
# are being created.
#
# * Setting a global variable in a CMakeLists.txt file is ok, because
@@ -133,7 +133,7 @@ set(px4_required_config
)
foreach(conf ${px4_required_config})
if(NOT DEFINED ${conf})
message(FATAL_ERROR "${config_module} must define ${conf}")
message(FATAL_ERROR "cmake/${config_module} must define ${conf}")
endif()
endforeach()