Skip to content

Commit

Permalink
Fix building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Jan 2, 2025
1 parent dd83261 commit b60b1e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ add_subdirectory(tools/create_surfaces)
### Optional target for docs
find_package(LATEX)
find_package(Doxygen OPTIONAL_COMPONENTS dot)
if(LATEX_FOUND AND DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND)
if(LATEX_FOUND AND DOXYGEN_FOUND AND NOT DOXYGEN_DOT_EXECUTABLE STREQUAL "")
message(STATUS "Documentation will be built.")
add_subdirectory(DOC EXCLUDE_FROM_ALL)
else()
message(STATUS "Documentation will not be built.")
endif()

0 comments on commit b60b1e2

Please sign in to comment.