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:
Pete Johanson 2020-05-28 12:51:17 -04:00 committed by Carles Cufí
commit 9b27cfd8c4

View file

@ -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})