mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 22:45:05 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4b58babf8
commit
ab31dd0add
@ -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