mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[CMake] Fix handling of passing through semi-colon separated lists.
When passing around CMake arguments as lists of arguments any arguments containing lists need to have their semi-colons escaped otherwise CMake will split the arguments in the middle. llvm-svn: 253719
This commit is contained in:
parent
1e22479e47
commit
d9f3ae9820
@ -93,8 +93,9 @@ function(llvm_ExternalProject_Add name source_dir)
|
||||
get_cmake_property(variableNames VARIABLES)
|
||||
foreach(varaibleName ${variableNames})
|
||||
if(varaibleName MATCHES "^${nameCanon}")
|
||||
string(REPLACE ";" "\;" value "${${varaibleName}}")
|
||||
list(APPEND PASSTHROUGH_VARIABLES
|
||||
-D${varaibleName}=${${varaibleName}})
|
||||
-D${varaibleName}=${${value}})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user