Skip to content

Commit

Permalink
Fix INI newline processing. Fixes #2630 (#2637)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch authored Apr 2, 2024
1 parent b89b5d9 commit 4a5aad6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/settings/ini.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function(ini_to_cache)
unset(CMAKE_INSTALL_PREFIX CACHE)
endif()
# Process line-by-line
STRING(REPLACE "\n" ";" INI_OUTPUT "${INI_OUTPUT}")
foreach(LINE IN LISTS INI_OUTPUT)
# Skip malformed lines
if (NOT LINE MATCHES "^[A-Za-z0-9_]+=")
Expand Down

0 comments on commit 4a5aad6

Please sign in to comment.