Skip to content

Commit

Permalink
Fix delimiter so CMake reads string as a list (#593)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dcandler authored Dec 10, 2024
1 parent cff8232 commit 776a44c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arm-multilib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 776a44c

Please sign in to comment.