diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-07-20 19:05:08 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-07-20 19:05:08 (GMT) |
commit | 3b6ac9e24fae88e09558524d3d9bd023a753defc (patch) | |
tree | 11716813485da1325506c4bdad2a1a5096ebcfe2 /addon/doxyparse | |
parent | 3803bec48abc143d3ac4e43caf9922018788ba96 (diff) | |
download | Doxygen-3b6ac9e24fae88e09558524d3d9bd023a753defc.zip Doxygen-3b6ac9e24fae88e09558524d3d9bd023a753defc.tar.gz Doxygen-3b6ac9e24fae88e09558524d3d9bd023a753defc.tar.bz2 |
Make a switch to choose between dynamic library to clang-cpp or static linking against clangTooling
Diffstat (limited to 'addon/doxyparse')
-rw-r--r-- | addon/doxyparse/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addon/doxyparse/CMakeLists.txt b/addon/doxyparse/CMakeLists.txt index bfef0ab..8df99ab 100644 --- a/addon/doxyparse/CMakeLists.txt +++ b/addon/doxyparse/CMakeLists.txt @@ -15,7 +15,11 @@ doxyparse.cpp add_sanitizers(doxyparse) if (use_libclang) - set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) + if (static_libclang) + set(CLANG_LIBS libclang clangTooling ${llvm_libs}) + else() + set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) + endif() endif() target_link_libraries(doxyparse |