Commit 48b28c97 authored by Hannah von Reth's avatar Hannah von Reth
Browse files

Add Clang lib clangRewriteFrontend to FindClang.cmake

Add LLVM_LIBS which represents all LLVM libs to FindLLVM.cmake
parent bbbeebbb
......@@ -53,6 +53,7 @@ if (LLVM_FOUND AND LLVM_LIBRARY_DIR)
FIND_AND_ADD_CLANG_LIB(clangSema)
FIND_AND_ADD_CLANG_LIB(clangChecker)
FIND_AND_ADD_CLANG_LIB(clangAnalysis)
FIND_AND_ADD_CLANG_LIB(clangRewriteFrontend)
FIND_AND_ADD_CLANG_LIB(clangRewrite)
FIND_AND_ADD_CLANG_LIB(clangAST)
FIND_AND_ADD_CLANG_LIB(clangParse)
......
......@@ -6,6 +6,7 @@
# LLVM_CFLAGS - llvm compiler flags
# LLVM_LFLAGS - llvm linker flags
# LLVM_MODULE_LIBS - list of llvm libs for working with modules.
# LLVM_LIBS - list of all llvm libs.
# LLVM_FOUND - True if llvm found.
# LLVM_VERSION - Version string ("llvm-config --version")
#
......@@ -102,6 +103,12 @@ if (LLVM_FOUND)
OUTPUT_VARIABLE LLVM_MODULE_LIBS
OUTPUT_STRIP_TRAILING_WHITESPACE
)
execute_process(
COMMAND ${LLVM_CONFIG_EXECUTABLE} --libs
OUTPUT_VARIABLE LLVM_LIBS
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif()
if (LLVM_FIND_REQUIRED AND NOT LLVM_FOUND)
......
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