Skip to content

Commit

Permalink
Make doxygen cmake config work with newer cmakes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 28, 2022
1 parent 92a02c7 commit f698464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit f698464

Please sign in to comment.