Skip to content

Commit

Permalink
Fix INI newline processing. Fixes nasa#2630
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Mar 28, 2024
1 parent 5bffaa3 commit 7014b37
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 7014b37

Please sign in to comment.