From ab31dd0adda16c16cccfb21a0bc3ad590a4fe75c Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 11 Nov 2015 21:54:31 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252810 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/LLVMExternalProjectUtils.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/LLVMExternalProjectUtils.cmake b/cmake/modules/LLVMExternalProjectUtils.cmake index 5527769fc93..63178ce6906 100644 --- a/cmake/modules/LLVMExternalProjectUtils.cmake +++ b/cmake/modules/LLVMExternalProjectUtils.cmake @@ -92,7 +92,7 @@ function(llvm_ExternalProject_Add name source_dir) # 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() -- 2.34.1