[CMake] Removing an unnecessary layer of variable indirection
[oota-llvm.git] / cmake / modules / LLVMExternalProjectUtils.cmake
index 5d8fb71e08b33f9571948f6c0a69f8dbf76d677a..c2d9f530c200e9ebe0fd0233e1da639fbf0a6bc2 100644 (file)
@@ -95,7 +95,7 @@ function(llvm_ExternalProject_Add name source_dir)
     if(variableName MATCHES "^${nameCanon}")
       string(REPLACE ";" "\;" value "${${variableName}}")
       list(APPEND PASSTHROUGH_VARIABLES
-        -D${variableName}=${${value}})
+        -D${variableName}=${value})
     endif()
   endforeach()