cmake: Fixes for shields in multiple roots
* Reset SHIELD_LIST on each root loop, to avoid matching on shields from the previous iteration of the loop. Signed-off-by: Pete Johanson <peter@peterjohanson.com>
This commit is contained in:
parent
0a018db0ff
commit
9b27cfd8c4
1 changed files with 1 additions and 0 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue