fixed a bug for default cfg path

This commit is contained in:
Robin Müller 2021-10-11 13:57:00 +02:00
parent a827ec6a92
commit e02ac05097
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -223,9 +223,10 @@ endif()
# The project CMakeLists file has to set the FSFW_CONFIG_PATH and add it.
# If this is not given, we include the default configuration and emit a warning.
if(NOT FSFW_CONFIG_PATH)
message(WARNING "Flight Software Framework configuration path not set!")
message(WARNING "Setting default configuration!")
add_subdirectory(defaultcfg/fsfwconfig)
message(WARNING "Flight Software Framework configuration path not set!")
set(DEF_CONF_PATH misc/defaultcfg/fsfwconfig)
message(WARNING "Setting default configuration from ${DEF_CONF_PATH} ..")
add_subdirectory(${DEF_CONF_PATH})
endif()
# FSFW might be part of a possibly complicated folder structure, so we