mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[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
27d9222fb6
commit
59a6ab650e
@ -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…
x
Reference in New Issue
Block a user