diff options
author | Chris Bieneman <beanz@apple.com> | 2015-11-20 22:09:03 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-11-20 22:09:03 +0000 |
commit | 553ceb86dde26f47e92315e0ad7fd499d8d1f01d (patch) | |
tree | 8b6ec411d1c4fe1f327dc8bb6af4c98d741f93fd /runtime | |
parent | 791fae7a1f9b65ddf98dfa9c8a10a2f5ab13fe86 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index ebbe152be1..5ca20c9207 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -49,8 +49,9 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) get_cmake_property(variableNames VARIABLES) foreach(varaibleName ${variableNames}) if(varaibleName MATCHES "^COMPILER_RT") + string(REPLACE ";" "\;" value "${${varaibleName}}") list(APPEND COMPILER_RT_PASSTHROUGH_VARIABLES - -D${varaibleName}=${${varaibleName}}) + -D${varaibleName}=${${value}}) endif() endforeach() |