Skip to content

Commit 776a44c

Browse files
authored
Fix delimiter so CMake reads string as a list (#593)
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.
1 parent cff8232 commit 776a44c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arm-multilib/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ foreach(lib_idx RANGE ${lib_count_dec})
147147
# options, check if it should be skipped.
148148
string(JSON variant_support ERROR_VARIABLE json_error GET ${lib_def} "libraries_supported")
149149
if(NOT variant_support STREQUAL "libraries_supported-NOTFOUND")
150+
# Replace colons with semi-colons so CMake comprehends the list.
151+
string(REPLACE "," ";" variant_support ${variant_support})
150152
if(NOT C_LIBRARY IN_LIST variant_support)
151153
continue()
152154
endif()

0 commit comments

Comments
 (0)