diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-04 15:59:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 15:59:42 (GMT) |
commit | 733a837375992c2f231ad905201f2acd355d88d5 (patch) | |
tree | 6df90b4d4f05c8f7ad61b570f5a41f34faaf72a7 /addon | |
parent | 19713dcc51ceb3930770cb25ec85590b86316cf7 (diff) | |
download | Doxygen-733a837375992c2f231ad905201f2acd355d88d5.zip Doxygen-733a837375992c2f231ad905201f2acd355d88d5.tar.gz Doxygen-733a837375992c2f231ad905201f2acd355d88d5.tar.bz2 |
GitHub actions experiments (#8305)
Changes:
- Build for Ubuntu-18.04 (gcc) and Ubuntu-20.04 (clang)
- Build with libclang (Ubuntu 20.04)
- Build with use_search enabled (Ubuntu 18.04)
- Build with use_wizard enabled
Diffstat (limited to 'addon')
-rw-r--r-- | addon/doxyapp/CMakeLists.txt | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/addon/doxyapp/CMakeLists.txt b/addon/doxyapp/CMakeLists.txt index 3e58d32..707fded 100644 --- a/addon/doxyapp/CMakeLists.txt +++ b/addon/doxyapp/CMakeLists.txt @@ -15,11 +15,23 @@ doxyapp.cpp add_sanitizers(doxyapp) if (use_libclang) + find_package(LLVM REQUIRED CONFIG) + find_package(Clang REQUIRED CONFIG) + if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + target_compile_features(doxyapp PRIVATE cxx_alignof) + if (use_libc++) + target_compile_options(doxyapp PRIVATE -stdlib=libc++) + endif() + endif() + include_directories(${LLVM_INCLUDE_DIRS}) + add_definitions(${LLVM_DEFINITIONS}) if (static_libclang) - set(CLANG_LIBS libclang clangTooling ${llvm_libs}) - else() - set(CLANG_LIBS libclang clang-cpp ${llvm_libs}) + set(CLANG_LIBS libclang clangTooling) + else() # dynamically linked version of clang + llvm_config(doxymain USE_SHARED support) + set(CLANG_LIBS libclang clang-cpp) endif() + target_compile_definitions(doxyapp PRIVATE ${LLVM_DEFINITIONS}) endif() target_link_libraries(doxyapp |