diff --git a/cmake/app/boilerplate.cmake b/cmake/app/boilerplate.cmake index 89b0888ea89..53e693e03ff 100644 --- a/cmake/app/boilerplate.cmake +++ b/cmake/app/boilerplate.cmake @@ -291,6 +291,7 @@ foreach(root ${BOARD_ROOT}) if(DEFINED SHIELD) foreach(s ${SHIELD_AS_LIST}) + list(REMOVE_ITEM SHIELD ${s}) list(FIND SHIELD_LIST ${s} _idx) if (NOT _idx EQUAL -1) list(GET shields_refs_list ${_idx} s_path)