From 2891de2fcdcb25b130070836cab75fcbbd4b1ec6 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Thu, 10 Sep 2015 19:02:05 +0200 Subject: [PATCH] Add dependency on Dot to CMakeLists for Doxygen integration. Reference: - http://www.cmake.org/cmake/help/v3.0/module/FindDoxygen.html --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89f8b145a..36bd7548d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -369,11 +369,11 @@ endif() # add a target to generate API documentation with Doxygen find_package(Doxygen) -if(DOXYGEN_FOUND) +if(DOXYGEN_FOUND AND DOXYGEN_DOT_FOUND) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen" VERBATIM ) -endif(DOXYGEN_FOUND) +endif()