From 08160ac39e26ae1f1e272071c4254067caed05a7 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 8 Jan 2020 11:47:50 +0100 Subject: [PATCH] Use SRC_LOCAL_PATH as single source of truth This avoids the two path diverging and possibly causing problems in the future --- cmake/global_functions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/global_functions.cmake b/cmake/global_functions.cmake index 960cc2f9b..790f91a70 100644 --- a/cmake/global_functions.cmake +++ b/cmake/global_functions.cmake @@ -42,7 +42,7 @@ function(generate_config_includefile DESTFILE SUFFIX) if (INCL_INDX LESS 0) list(APPEND INCL_LIST "${SRC_LOCAL_PATH}") if (EXISTS "${SRC_LOCAL_PATH}") - file(TO_NATIVE_PATH "${MISSION_DEFS}/${SRC}_${SUFFIX}" SRC_NATIVE) + file(TO_NATIVE_PATH "${SRC_LOCAL_PATH}" SRC_NATIVE) set(DEST_CONTENTSTR "${DEST_CONTENTSTR}#include \"${SRC_NATIVE}\"\n") else() set(DEST_CONTENTSTR "${DEST_CONTENTSTR}/* ${SRC_LOCAL_PATH} does not exist */\n")