Commit e35e1cc2 by Junru Shao Committed by Tianqi Chen

trivial (#3954)

parent 4b431c67
...@@ -47,6 +47,7 @@ macro(find_llvm use_llvm) ...@@ -47,6 +47,7 @@ macro(find_llvm use_llvm)
elseif(NOT LLVM_CONFIG STREQUAL "OFF") elseif(NOT LLVM_CONFIG STREQUAL "OFF")
# use llvm config # use llvm config
message(STATUS "Use llvm-config=" ${LLVM_CONFIG}) message(STATUS "Use llvm-config=" ${LLVM_CONFIG})
separate_arguments(LLVM_CONFIG)
execute_process(COMMAND ${LLVM_CONFIG} --libfiles execute_process(COMMAND ${LLVM_CONFIG} --libfiles
OUTPUT_VARIABLE __llvm_libfiles) OUTPUT_VARIABLE __llvm_libfiles)
execute_process(COMMAND ${LLVM_CONFIG} --system-libs execute_process(COMMAND ${LLVM_CONFIG} --system-libs
...@@ -60,7 +61,7 @@ macro(find_llvm use_llvm) ...@@ -60,7 +61,7 @@ macro(find_llvm use_llvm)
# definitions # definitions
string(REGEX MATCHALL "(^| )-D[A-Za-z0-9_]*" LLVM_DEFINITIONS ${__llvm_cxxflags}) string(REGEX MATCHALL "(^| )-D[A-Za-z0-9_]*" LLVM_DEFINITIONS ${__llvm_cxxflags})
# include dir # include dir
string(REGEX MATCHALL "(^| )-I[^ ]*" __llvm_include_flags ${__llvm_cxxflags}) string(REGEX MATCHALL "(^| )-I[^ ]*" __llvm_include_flags ${__llvm_cxxflags})
set(LLVM_INCLUDE_DIRS "") set(LLVM_INCLUDE_DIRS "")
foreach(__flag IN ITEMS ${__llvm_include_flags}) foreach(__flag IN ITEMS ${__llvm_include_flags})
string(REGEX REPLACE "(^| )-I" "" __dir "${__flag}") string(REGEX REPLACE "(^| )-I" "" __dir "${__flag}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment