r252809 - [CMake] Fixing passthrough for variables starting with COMPILER_RT

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 13:53:09 PST 2015


Author: cbieneman
Date: Wed Nov 11 15:53:08 2015
New Revision: 252809

URL: http://llvm.org/viewvc/llvm-project?rev=252809&view=rev
Log:
[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.

Modified:
    cfe/trunk/runtime/CMakeLists.txt

Modified: cfe/trunk/runtime/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/CMakeLists.txt?rev=252809&r1=252808&r2=252809&view=diff
==============================================================================
--- cfe/trunk/runtime/CMakeLists.txt (original)
+++ cfe/trunk/runtime/CMakeLists.txt Wed Nov 11 15:53:08 2015
@@ -48,7 +48,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND E
   # 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()




More information about the cfe-commits mailing list