fix(build): Fix for proper string variable check.
* Properly load variable for comparison for shield name substring calculations.
This commit is contained in:
parent
a7e857f7e1
commit
11ac8c4782
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ if(DEFINED SHIELD)
|
||||||
while(NOT S_PIECES STREQUAL "")
|
while(NOT S_PIECES STREQUAL "")
|
||||||
list(POP_BACK S_PIECES)
|
list(POP_BACK S_PIECES)
|
||||||
list(JOIN S_PIECES "_" s_substr)
|
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()
|
break()
|
||||||
endif()
|
endif()
|
||||||
list(APPEND shield_candidate_names ${s_substr})
|
list(APPEND shield_candidate_names ${s_substr})
|
||||||
|
|
Loading…
Reference in a new issue