forked from OSchip/llvm-project
[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. llvm-svn: 252810
This commit is contained in:
parent
74d20e4853
commit
77f211c1aa
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue