Skip to content

Commit

Permalink
Use SRC_LOCAL_PATH as single source of truth
Browse files Browse the repository at this point in the history
This avoids the two path diverging and possibly causing problems in the future
  • Loading branch information
matzipan authored Jan 8, 2020
1 parent 2b27dfc commit 08160ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/global_functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 08160ac

Please sign in to comment.