[llvm] r254641 - [CMake] Removing an unnecessary layer of variable indirection

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 11:47:04 PST 2015


Author: cbieneman
Date: Thu Dec  3 13:47:04 2015
New Revision: 254641

URL: http://llvm.org/viewvc/llvm-project?rev=254641&view=rev
Log:
[CMake] Removing an unnecessary layer of variable indirection

This prevents passthrough variables from having values.

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=254641&r1=254640&r2=254641&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake Thu Dec  3 13:47:04 2015
@@ -95,7 +95,7 @@ function(llvm_ExternalProject_Add name s
     if(variableName MATCHES "^${nameCanon}")
       string(REPLACE ";" "\;" value "${${variableName}}")
       list(APPEND PASSTHROUGH_VARIABLES
-        -D${variableName}=${${value}})
+        -D${variableName}=${value})
     endif()
   endforeach()
 




More information about the llvm-commits mailing list