mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ExternalProject: Fix regression in passing list to CMAKE_CACHE_ARGS
Fix passing a list to the CMAKE_CACHE_ARGS and CMAKE_CACHE_DEFAULT_ARGS options of ExternalProject_Add. Following commit v3.7.0-rc1~273^2~1 (prefer list(APPEND) over string(APPEND) where appropriate, 2016-08-08), the semicolon list separator after the first list element was missing in the generated cache.
This commit is contained in:
@@ -1160,7 +1160,7 @@ function(_ep_command_line_to_initial_cache var args force)
|
||||
endif()
|
||||
else()
|
||||
# Assume this is a list to append to the last var
|
||||
list(APPEND accumulator "${line}")
|
||||
string(APPEND accumulator ";${line}")
|
||||
endif()
|
||||
endforeach()
|
||||
# Catch the final line of the args
|
||||
|
||||
Reference in New Issue
Block a user