Fix space handling for different paths.

E.g. on my machine LLVM is installed in folder C:\My Program Files\LLVM.

Fixes part of issue #1465. (PR 1466 is required for complete fix.)
This commit is contained in:
Kai Nacke 2016-05-15 01:47:14 +02:00
parent 1508bafccc
commit cb0f2e7e6a
4 changed files with 26 additions and 20 deletions

View file

@ -178,7 +178,7 @@ else()
# but code for it is not in shared library
if("${LLVM_FIND_COMPONENTS}" MATCHES "tablegen")
if (NOT "${LLVM_LIBRARIES}" MATCHES "LLVMTableGen")
set(LLVM_LIBRARIES "${LLVM_LIBRARIES} -lLLVMTableGen")
set(LLVM_LIBRARIES "${LLVM_LIBRARIES};-lLLVMTableGen")
endif()
endif()
llvm_set(TARGETS_TO_BUILD targets-built)