From f698464028f9a53abb2e59499f923df622868d8e Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Tue, 28 Jun 2022 20:21:11 +0200 Subject: [PATCH] Make doxygen cmake config work with newer cmakes --- .github/workflows/linux.yml | 2 +- doc/CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index a8d799b..6cbc7ea 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -23,7 +23,7 @@ jobs: run: | mkdir build cd build - cmake -GNinja -C ${ILCSOFT}/ILCSoft.cmake -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " .. + cmake -GNinja -C ${ILCSOFT}/ILCSoft.cmake -DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " -DINSTALL_DOC=ON .. ninja -k0 ctest --output-on-failure ninja install diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index d452348..37e205b 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -15,6 +15,7 @@ IF( DOXYGEN_FOUND ) # directories to search for documentation SET( DOX_INPUT ../source ) + FILE(GLOB DOXYGEN_SOURCES ../source/*/*/*) # custom command to build documentation ADD_CUSTOM_COMMAND( @@ -26,7 +27,7 @@ IF( DOXYGEN_FOUND ) "${DOXYGEN_EXECUTABLE}" WORKING_DIRECTORY "${DOC_SRC_DIR}" COMMENT "Building API Documentation..." - DEPENDS Doxyfile CMakeLists.txt ../source/*/*/* + DEPENDS Doxyfile CMakeLists.txt ${DOXYGEN_SOURCES} ) # add doc target