llvm.org GIT mirror llvm / cfe7a7c
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 Hans Wennborg 6 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
77 foreach(l ${LLVM_SYSTEM_LIBS_LIST})
88 set(SYSTEM_LIBS ${SYSTEM_LIBS} "-l${l}")
99 endforeach()
10 string(REPLACE ";" " " SYSTEM_LIBS "${SYSTEM_LIBS}")
1011
1112 # Use configure_file to create BuildVariables.inc.
1213 set(LLVM_SRC_ROOT ${LLVM_MAIN_SRC_DIR})
1718 set(LLVM_LDFLAGS ${CMAKE_SHARED_LINKER_FLAGS})
1819 set(LLVM_BUILDMODE ${CMAKE_BUILD_TYPE})
1920 set(LLVM_SYSTEM_LIBS ${SYSTEM_LIBS})
20 set(LLVM_TARGETS_BUILT ${LLVM_TARGETS_TO_BUILD})
21 string(REPLACE ";" " " LLVM_TARGETS_BUILT "${LLVM_TARGETS_TO_BUILD}")
2122 configure_file(${BUILDVARIABLES_SRCPATH} ${BUILDVARIABLES_OBJPATH} @ONLY)
2223
2324 # Add the llvm-config tool.