[llvm] r252810 - [CMake] Fixing passthrough for variables starting with the sub-project name

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 13:54:32 PST 2015


Author: cbieneman
Date: Wed Nov 11 15:54:31 2015
New Revision: 252810

URL: http://llvm.org/viewvc/llvm-project?rev=252810&view=rev
Log:
[CMake] Fixing passthrough for variables starting with the sub-project name

This allows TEST_SUITE variables to be passed from the top-level CMake into the external project.

Modified:
    llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake

Modified: llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake?rev=252810&r1=252809&r2=252810&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake Wed Nov 11 15:54:31 2015
@@ -92,7 +92,7 @@ function(llvm_ExternalProject_Add name s
   # them.
   get_cmake_property(variableNames VARIABLES)
   foreach(varaibleName ${variableNames})
-    if(${varaibleName} MATCHES "^${nameCanon}")
+    if(varaibleName MATCHES "^${nameCanon}")
       list(APPEND PASSTHROUGH_VARIABLES
         -D${varaibleName}=${${varaibleName}})
     endif()




More information about the llvm-commits mailing list