fix(build): Fix for proper string variable check.

* Properly load variable for comparison for shield name substring
  calculations.
This commit is contained in:
Peter Johanson 2022-06-07 19:43:23 -04:00
parent a7e857f7e1
commit 11ac8c4782

View file

@ -122,7 +122,7 @@ if(DEFINED SHIELD)
while(NOT S_PIECES STREQUAL "")
list(POP_BACK S_PIECES)
list(JOIN S_PIECES "_" s_substr)
if ("%{s_substr}" STREQUAL "" OR "${s_substr}" STREQUAL ${shield_dir_name})
if ("${s_substr}" STREQUAL "" OR "${s_substr}" STREQUAL "${shield_dir_name}")
break()
endif()
list(APPEND shield_candidate_names ${s_substr})