[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:
Chris Bieneman 2015-11-11 21:54:31 +00:00
parent 74d20e4853
commit 77f211c1aa
1 changed files with 1 additions and 1 deletions

View File

@ -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()