summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules/LLVMExternalProjectUtils.cmake
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-11-20 22:08:49 +0000
committerChris Bieneman <beanz@apple.com>2015-11-20 22:08:49 +0000
commitdf90755b3685b7afeacd979b6fbda4f81884948d (patch)
treea545f613b3ae1f220eaa899d8595e1ba5822fe94 /llvm/cmake/modules/LLVMExternalProjectUtils.cmake
parent4e89e9f846ba2c5bf56ee524cef31b209d5213c9 (diff)
downloadbcm5719-llvm-df90755b3685b7afeacd979b6fbda4f81884948d.tar.gz
bcm5719-llvm-df90755b3685b7afeacd979b6fbda4f81884948d.zip
[CMake] Fix handling of passing through semi-colon separated lists.
When passing around CMake arguments as lists of arguments any arguments containing lists need to have their semi-colons escaped otherwise CMake will split the arguments in the middle. llvm-svn: 253719
Diffstat (limited to 'llvm/cmake/modules/LLVMExternalProjectUtils.cmake')
-rw-r--r--llvm/cmake/modules/LLVMExternalProjectUtils.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/cmake/modules/LLVMExternalProjectUtils.cmake b/llvm/cmake/modules/LLVMExternalProjectUtils.cmake
index 63178ce6906..01d5e337b8d 100644
--- a/llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+++ b/llvm/cmake/modules/LLVMExternalProjectUtils.cmake
@@ -93,8 +93,9 @@ function(llvm_ExternalProject_Add name source_dir)
get_cmake_property(variableNames VARIABLES)
foreach(varaibleName ${variableNames})
if(varaibleName MATCHES "^${nameCanon}")
+ string(REPLACE ";" "\;" value "${${varaibleName}}")
list(APPEND PASSTHROUGH_VARIABLES
- -D${varaibleName}=${${varaibleName}})
+ -D${varaibleName}=${${value}})
endif()
endforeach()
OpenPOWER on IntegriCloud