Skip to content

Commit

Permalink
Fix nasa#2481, correct loop variable
Browse files Browse the repository at this point in the history
This CMake loop is supposed to run for every app.  Unfortunately at
this point the SYSVAR is not yet defined, so the result is it does
nothing and none of the overrides get configured.

With this loop, it should set up the override directive correctly.
  • Loading branch information
jphickey committed Dec 13, 2023
1 parent 70458a2 commit 2c22190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/arch_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ function(setup_platform_msgids)
list(APPEND OUTPUT_VAR_LIST ${CFGSRC}_cfe_${DEP_NAME}_msgids)
endforeach(DEP_NAME ${MISSION_CORE_MODULES})

foreach(DEP_NAME ${TGTSYS_${SYSVAR}_APPS} ${TGTSYS_${SYSVAR}_STATICAPPS})
foreach(DEP_NAME ${MISSION_APPS})
string(TOUPPER "${DEP_NAME}_CFGFILE_SRC" CFGSRC)
list(APPEND OUTPUT_VAR_LIST ${CFGSRC}_${DEP_NAME}_msgids)
endforeach(DEP_NAME ${MISSION_APPS})
Expand Down

0 comments on commit 2c22190

Please sign in to comment.