diff options
author | Chris Bieneman <beanz@apple.com> | 2015-11-11 21:53:08 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-11-11 21:53:08 +0000 |
commit | 3f780d757ea28d90adba820d20b5182f0482278f (patch) | |
tree | b0308ccc97df3d126f11bd1f7f8995f40d218316 /runtime/CMakeLists.txt | |
parent | 58ac3983f94cf80e33c269e245e57132b76b629d (diff) | |
download | clang-3f780d757ea28d90adba820d20b5182f0482278f.tar.gz |
[CMake] Fixing passthrough for variables starting with COMPILER_RT
This allows COMPILER_RT_* variables to be passed from the top-level CMake into the external project when LLVM_BUILD_EXTERNAL_COMPILER_RT=On.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/CMakeLists.txt')
-rw-r--r-- | runtime/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index 1a015f05f9..ebbe152be1 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -48,7 +48,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) # them. get_cmake_property(variableNames VARIABLES) foreach(varaibleName ${variableNames}) - if(${varaibleName} MATCHES "^COMPILER_RT") + if(varaibleName MATCHES "^COMPILER_RT") list(APPEND COMPILER_RT_PASSTHROUGH_VARIABLES -D${varaibleName}=${${varaibleName}}) endif() |