]> granicus.if.org Git - clang/commitdiff
[CMake] Fixing passthrough for variables starting with COMPILER_RT
authorChris Bieneman <beanz@apple.com>
Wed, 11 Nov 2015 21:53:08 +0000 (21:53 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 11 Nov 2015 21:53:08 +0000 (21:53 +0000)
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

runtime/CMakeLists.txt

index 1a015f05f9af1fe8dc740b8435aac311e7c4e0ff..ebbe152be1d9949f4b88dbc0759d69d8cd6f9280 100644 (file)
@@ -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()