better path determination

This commit is contained in:
Robin Müller 2020-12-19 12:10:29 +01:00
parent e030d7ed97
commit be20978998

View File

@ -98,10 +98,10 @@ endif()
# FSFW might be part of a possibly complicated folder structure, so we
# extract the absolute path of the fsfwconfig folder.
if(IS_ABSOLUTE ${FSFW_CONFIG_PATH})
set(${FSFW_CONFIG_PATH_ABSOLUTE} ${FSFW_CONFIG_PATH})
set(FSFW_CONFIG_PATH_ABSOLUTE ${FSFW_CONFIG_PATH})
else()
get_filename_component(${FSFW_CONFIG_PATH_ABSOLUTE}
${FSFW_CONFIG_PATH} ABSOLUTE
get_filename_component(FSFW_CONFIG_PATH_ABSOLUTE
${FSFW_CONFIG_PATH} REALPATH BASE_DIR ${CMAKE_SOURCE_DIR}
)
endif()