summaryrefslogtreecommitdiff
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorMax Smolens <max.smolens@kitware.com>2016-10-10 11:39:57 -0400
committerBrad King <brad.king@kitware.com>2016-10-10 14:40:12 -0400
commita3c98cb30edba8ba19bc05d4e08fd344f3440f32 (patch)
tree617d225b865f3b59f8ba5620e723e8237fca96ee /Modules/ExternalProject.cmake
parentb99bbfe88d1bb02dc903507f3e1bbe716ac04c12 (diff)
downloadcmake-a3c98cb30edba8ba19bc05d4e08fd344f3440f32.tar.gz
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.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index bbeeeed43e..4ba8537e02 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -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