llvm.org GIT mirror llvm / ab31dd0
[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 Chris Bieneman 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9191 # them.
9292 get_cmake_property(variableNames VARIABLES)
9393 foreach(varaibleName ${variableNames})
94 if(${varaibleName} MATCHES "^${nameCanon}")
94 if(varaibleName MATCHES "^${nameCanon}")
9595 list(APPEND PASSTHROUGH_VARIABLES
9696 -D${varaibleName}=${${varaibleName}})
9797 endif()