Skip to content

Commit

Permalink
cmake: Fixes for shields in multiple roots
Browse files Browse the repository at this point in the history
* Reset SHIELD_LIST on each root loop, to avoid matching
  on shields from the previous iteration of the loop.

Signed-off-by: Pete Johanson <[email protected]>
  • Loading branch information
petejohanson authored and carlescufi committed Jun 9, 2020
1 parent 0a018db commit 9b27cfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/app/boilerplate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ foreach(root ${BOARD_ROOT})
# x_nucleo_iks01a1/x_nucleo_iks01a1.overlay;x_nucleo_iks01a2/x_nucleo_iks01a2.overlay
# we construct a list of shield names by extracting file name and
# removing the extension.
unset(SHIELD_LIST)
foreach(shield_path ${shields_refs_list})
get_filename_component(shield ${shield_path} NAME_WE)
list(APPEND SHIELD_LIST ${shield})
Expand Down

0 comments on commit 9b27cfd

Please sign in to comment.