From 3803bec48abc143d3ac4e43caf9922018788ba96 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sun, 19 Jul 2020 13:02:59 +0200 Subject: Fix #7883 --- addon/doxyapp/CMakeLists.txt | 2 +- addon/doxyparse/CMakeLists.txt | 2 +- src/CMakeLists.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addon/doxyapp/CMakeLists.txt b/addon/doxyapp/CMakeLists.txt index 8ec4d2e..808eee9 100644 --- a/addon/doxyapp/CMakeLists.txt +++ b/addon/doxyapp/CMakeLists.txt @@ -15,7 +15,7 @@ doxyapp.cpp add_sanitizers(doxyapp) if (use_libclang) - set(CLANG_LIBS libclang clangTooling ${llvm_libs}) + set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) endif() target_link_libraries(doxyapp diff --git a/addon/doxyparse/CMakeLists.txt b/addon/doxyparse/CMakeLists.txt index 6ddc113..bfef0ab 100644 --- a/addon/doxyparse/CMakeLists.txt +++ b/addon/doxyparse/CMakeLists.txt @@ -15,7 +15,7 @@ doxyparse.cpp add_sanitizers(doxyparse) if (use_libclang) - set(CLANG_LIBS libclang clangTooling ${llvm_libs}) + set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) endif() target_link_libraries(doxyparse diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 221ff46..dc90eb0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -330,9 +330,9 @@ if (use_libclang) endif() include_directories(${LLVM_INCLUDE_DIRS}) add_definitions(${LLVM_DEFINITIONS}) - llvm_map_components_to_libnames(llvm_libs support core option) + llvm_map_components_to_libnames(llvm_libs support) target_compile_definitions(doxygen PRIVATE ${LLVM_DEFINITIONS}) - set(CLANG_LIBS libclang clangTooling ${llvm_libs}) + set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) endif() target_link_libraries(doxygen -- cgit v0.12