From 11ac8c4782a01c27268854e4289a0059b23e4a96 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Tue, 7 Jun 2022 19:43:23 -0400 Subject: [PATCH] fix(build): Fix for proper string variable check. * Properly load variable for comparison for shield name substring calculations. --- app/cmake/ZephyrBuildConfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cmake/ZephyrBuildConfig.cmake b/app/cmake/ZephyrBuildConfig.cmake index 469f5761..931dd7ac 100644 --- a/app/cmake/ZephyrBuildConfig.cmake +++ b/app/cmake/ZephyrBuildConfig.cmake @@ -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})