r253720 - [CMake] Fix handling of passing through semi-colon separated lists.
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 20 14:09:04 PST 2015
Author: cbieneman
Date: Fri Nov 20 16:09:03 2015
New Revision: 253720
URL: http://llvm.org/viewvc/llvm-project?rev=253720&view=rev
Log:
[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.
Modified:
cfe/trunk/runtime/CMakeLists.txt
Modified: cfe/trunk/runtime/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/CMakeLists.txt?rev=253720&r1=253719&r2=253720&view=diff
==============================================================================
--- cfe/trunk/runtime/CMakeLists.txt (original)
+++ cfe/trunk/runtime/CMakeLists.txt Fri Nov 20 16:09:03 2015
@@ -49,8 +49,9 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND E
get_cmake_property(variableNames VARIABLES)
foreach(varaibleName ${variableNames})
if(varaibleName MATCHES "^COMPILER_RT")
+ string(REPLACE ";" "\;" value "${${varaibleName}}")
list(APPEND COMPILER_RT_PASSTHROUGH_VARIABLES
- -D${varaibleName}=${${varaibleName}})
+ -D${varaibleName}=${${value}})
endif()
endforeach()
More information about the cfe-commits
mailing list