Skip to content

Commit

Permalink
Fix nasa#97, Support custom override of lc_msgids
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Sep 13, 2023
1 parent ca47670 commit 817c2c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ set(LC_PLATFORM_CONFIG_FILE_LIST
# This makes them individually overridable by the missions, without modifying
# the distribution default copies
foreach(LC_CFGFILE ${LC_PLATFORM_CONFIG_FILE_LIST})
set(DEFAULT_SOURCE "${CMAKE_CURRENT_LIST_DIR}/config/default_${LC_CFGFILE}")
get_filename_component(CFGKEY "${LC_CFGFILE}" NAME_WE)
if (DEFINED LC_CFGFILE_SRC_${CFGKEY})
set(DEFAULT_SOURCE "${LC_CFGFILE_SRC_${CFGKEY}}")
else()
set(DEFAULT_SOURCE "${CMAKE_CURRENT_LIST_DIR}/config/default_${LC_CFGFILE}")
endif()

generate_config_includefile(
FILE_NAME "${LC_CFGFILE}"
FALLBACK_FILE "${DEFAULT_SOURCE}"
Expand Down

0 comments on commit 817c2c6

Please sign in to comment.