Browse Source

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

* Properly load variable for comparison for shield name substring
  calculations.
xmkb
Peter Johanson 2 years ago
parent
commit
11ac8c4782
  1. 2
      app/cmake/ZephyrBuildConfig.cmake

2
app/cmake/ZephyrBuildConfig.cmake

@ -122,7 +122,7 @@ if(DEFINED SHIELD) @@ -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})

Loading…
Cancel
Save