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")