[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
Mon Nov 27 12:42:18 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL319089: Use LIST_SEPARATOR rather than escaping in ExternalProject_Add (authored by phosek).

Changed prior to commit:
  https://reviews.llvm.org/D40232?vs=123526&id=124445#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D40232

Files:
  llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake


Index: llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake
===================================================================
--- llvm/trunk/cmake/modules/LLVMExternalProjectUtils.cmake
+++ llvm/trunk/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.124445.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171127/dc204d31/attachment.bin>


More information about the llvm-commits mailing list