Permalink
Browse files

Fix #1262: Append llvm-config --system-libs to LIBCLANG_LIBRARIES

  • Loading branch information...
cslux committed Nov 27, 2018
1 parent 1963b38 commit 5870fb617dbcf1253ef5d778b9788fb63ad6e76f
Showing with 7 additions and 1 deletion.
  1. +7 −1 cmake/FindLibClang.cmake
@@ -125,9 +125,15 @@ if (NOT LIBCLANG_LIBRARIES)
endif ()
unset(LIBCLANG_LIB_HACK_CMAKECACHE_DOT_TEXT_BULLSHIT CACHE)
endif ()
set(LIBCLANG_LIBRARY ${LIBCLANG_LIBRARIES} CACHE FILEPATH "Path to the libclang library")
if (NOT LIBCLANG_SYSTEM_LIBS)
execute_process(COMMAND ${LIBCLANG_LLVM_CONFIG_EXECUTABLE} --system-libs OUTPUT_VARIABLE LIBCLANG_SYSTEM_LIBS OUTPUT_STRIP_TRAILING_WHITESPACE)
if (LIBCLANG_SYSTEM_LIBS)
set (LIBCLANG_LIBRARIES ${LIBCLANG_LIBRARIES} ${LIBCLANG_SYSTEM_LIBS})
endif ()
endif ()
if (LIBCLANG_LLVM_CONFIG_EXECUTABLE)
execute_process(COMMAND ${LIBCLANG_LLVM_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE LIBCLANG_VERSION_STRING OUTPUT_STRIP_TRAILING_WHITESPACE)
else ()

0 comments on commit 5870fb6

Please sign in to comment.