[llvm] r189491 - cmake: Prevent semicolon separated lists in llvm-config (PR17020)
Hans Wennborg
hans at hanshq.net
Wed Aug 28 10:04:06 PDT 2013
Author: hans
Date: Wed Aug 28 12:04:06 2013
New Revision: 189491
URL: http://llvm.org/viewvc/llvm-project?rev=189491&view=rev
Log:
cmake: Prevent semicolon separated lists in llvm-config (PR17020)
Modified:
llvm/trunk/tools/llvm-config/CMakeLists.txt
Modified: llvm/trunk/tools/llvm-config/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/CMakeLists.txt?rev=189491&r1=189490&r2=189491&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-config/CMakeLists.txt Wed Aug 28 12:04:06 2013
@@ -8,6 +8,7 @@ get_system_libs(LLVM_SYSTEM_LIBS_LIST)
foreach(l ${LLVM_SYSTEM_LIBS_LIST})
set(SYSTEM_LIBS ${SYSTEM_LIBS} "-l${l}")
endforeach()
+string(REPLACE ";" " " SYSTEM_LIBS "${SYSTEM_LIBS}")
# Use configure_file to create BuildVariables.inc.
set(LLVM_SRC_ROOT ${LLVM_MAIN_SRC_DIR})
@@ -18,7 +19,7 @@ set(LLVM_CXXFLAGS "${CMAKE_CXX_FLAGS} ${
set(LLVM_LDFLAGS ${CMAKE_SHARED_LINKER_FLAGS})
set(LLVM_BUILDMODE ${CMAKE_BUILD_TYPE})
set(LLVM_SYSTEM_LIBS ${SYSTEM_LIBS})
-set(LLVM_TARGETS_BUILT ${LLVM_TARGETS_TO_BUILD})
+string(REPLACE ";" " " LLVM_TARGETS_BUILT "${LLVM_TARGETS_TO_BUILD}")
configure_file(${BUILDVARIABLES_SRCPATH} ${BUILDVARIABLES_OBJPATH} @ONLY)
# Add the llvm-config tool.
More information about the llvm-commits
mailing list