diff options
author | Chris Bieneman <beanz@apple.com> | 2015-11-20 22:08:49 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-11-20 22:08:49 +0000 |
commit | df90755b3685b7afeacd979b6fbda4f81884948d (patch) | |
tree | a545f613b3ae1f220eaa899d8595e1ba5822fe94 /llvm/cmake/modules/LLVMExternalProjectUtils.cmake | |
parent | 4e89e9f846ba2c5bf56ee524cef31b209d5213c9 (diff) | |
download | bcm5719-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.cmake | 3 |
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() |