summaryrefslogtreecommitdiff
path: root/tools/llvm-config
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-08-28 17:04:06 +0000
committerHans Wennborg <hans@hanshq.net>2013-08-28 17:04:06 +0000
commitcfe7a7c7e3846aa5548cb9cbcbd8fbf5c9c0b751 (patch)
tree2f33b2351d69c3a276366bf40b40b66e22885ff4 /tools/llvm-config
parentb2e5453821ef27306036a9961818cf530a3ca8cb (diff)
cmake: Prevent semicolon separated lists in llvm-config (PR17020)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-config')
-rw-r--r--tools/llvm-config/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt
index d17a19e9498..c651833b548 100644
--- a/tools/llvm-config/CMakeLists.txt
+++ b/tools/llvm-config/CMakeLists.txt
@@ -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} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_
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.