mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Use LIST_SEPARATOR rather than escaping in ExternalProject_Add
Escaping ; in list arguments passed to ExternalProject_Add doesn't seem to be working in newer versions of CMake (see https://public.kitware.com/Bug/view.php?id=16137 for more details). Use a custom LIST_SEPARATOR instead which is the officially supported way. Differential Revision: https://reviews.llvm.org/D40232 llvm-svn: 319089
This commit is contained in:
parent
651277024b
commit
392075da95
@ -95,7 +95,7 @@ function(llvm_ExternalProject_Add name source_dir)
|
||||
foreach(prefix ${ARG_PASSTHROUGH_PREFIXES})
|
||||
foreach(variableName ${variableNames})
|
||||
if(variableName MATCHES "^${prefix}")
|
||||
string(REPLACE ";" "\;" value "${${variableName}}")
|
||||
string(REPLACE ";" "," value "${${variableName}}")
|
||||
list(APPEND PASSTHROUGH_VARIABLES
|
||||
-D${variableName}=${value})
|
||||
endif()
|
||||
@ -159,6 +159,7 @@ function(llvm_ExternalProject_Add name source_dir)
|
||||
USES_TERMINAL_CONFIGURE 1
|
||||
USES_TERMINAL_BUILD 1
|
||||
USES_TERMINAL_INSTALL 1
|
||||
LIST_SEPARATOR ,
|
||||
)
|
||||
|
||||
if(ARG_USE_TOOLCHAIN)
|
||||
|
Loading…
Reference in New Issue
Block a user