diff --git a/CMakeLists.txt b/CMakeLists.txt index bee5736..e3eebb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()