From d7ba8ec0afdaa78ea1893097128355667eb81fa1 Mon Sep 17 00:00:00 2001 From: David Candler Date: Tue, 10 Dec 2024 15:03:33 +0000 Subject: [PATCH] Fix delimiter so CMake reads string as a list The libraries_supported property is a comma separated list, but CMake uses semi-colons to understand lists. Replacing the character will allow CMake to check which libraries are set within. --- arm-multilib/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arm-multilib/CMakeLists.txt b/arm-multilib/CMakeLists.txt index 7329502f..0b371ad2 100644 --- a/arm-multilib/CMakeLists.txt +++ b/arm-multilib/CMakeLists.txt @@ -147,6 +147,8 @@ foreach(lib_idx RANGE ${lib_count_dec}) # options, check if it should be skipped. string(JSON variant_support ERROR_VARIABLE json_error GET ${lib_def} "libraries_supported") if(NOT variant_support STREQUAL "libraries_supported-NOTFOUND") + # Replace colons with semi-colons so CMake comprehends the list. + string(REPLACE "," ";" variant_support ${variant_support}) if(NOT C_LIBRARY IN_LIST variant_support) continue() endif()