Skip to content

Commit

Permalink
fix: gracefully warn if doxygen is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 2, 2024
1 parent 0b3e25a commit 6e86177
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Doxygen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ function(enable_doxygen DOXYGEN_THEME)
endif()

# find doxygen and dot if available
find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot)
find_package(Doxygen OPTIONAL_COMPONENTS dot)
if (NOT Doxygen_FOUND)
message(WARNING "Doxygen not found, install doxygen and try again. Documentation will not be generated.")
return()
endif()

# add doxygen-docs target
message(STATUS "Adding `doxygen-docs` target that builds the documentation.")
Expand Down

0 comments on commit 6e86177

Please sign in to comment.