Skip to content

Commit d471f4b

Browse files
aminyaFeignClaims
authored andcommitted
fix: gracefully warn if doxygen is not installed
1 parent a953ec6 commit d471f4b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Doxygen.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ function(enable_doxygen DOXYGEN_THEME)
7979
endif()
8080

8181
# find doxygen and dot if available
82-
find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot)
82+
find_package(Doxygen OPTIONAL_COMPONENTS dot)
83+
if (NOT Doxygen_FOUND)
84+
message(WARNING "Doxygen not found, install doxygen and try again. Documentation will not be generated.")
85+
return()
86+
endif()
8387

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

0 commit comments

Comments
 (0)