[PATCH] D40232: [CMake] Use LIST_SEPARATOR rather than escaping in ExternalProject_Add
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 19 19:03:48 PST 2017
phosek created this revision.
Herald added a subscriber: mgorny.
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.
Repository:
rL LLVM
https://reviews.llvm.org/D40232
Files:
cmake/modules/LLVMExternalProjectUtils.cmake
Index: cmake/modules/LLVMExternalProjectUtils.cmake
===================================================================
--- cmake/modules/LLVMExternalProjectUtils.cmake
+++ cmake/modules/LLVMExternalProjectUtils.cmake
@@ -95,7 +95,7 @@
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 @@
USES_TERMINAL_CONFIGURE 1
USES_TERMINAL_BUILD 1
USES_TERMINAL_INSTALL 1
+ LIST_SEPARATOR ,
)
if(ARG_USE_TOOLCHAIN)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40232.123526.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171120/4b9c5eb4/attachment.bin>
More information about the llvm-commits
mailing list