X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/91bcc38f9c9fc26bc0a52d28dbd3e65f65fa0749..561cb30f87c531af6b562249ddf90fac2a44aa92:/tools/cmake/Documentation.cmake diff --git a/tools/cmake/Documentation.cmake b/tools/cmake/Documentation.cmake index 3b5f6b3d64..780d7d2c5e 100644 --- a/tools/cmake/Documentation.cmake +++ b/tools/cmake/Documentation.cmake @@ -16,7 +16,7 @@ endif() find_path(FIG2DEV_PATH NAMES fig2dev PATHS NO_DEFAULT_PATHS) -if(DOXYGEN_FOUND) +if(enable_documentation) ADD_CUSTOM_TARGET(documentation COMMENT "Generating the SimGrid documentation..." DEPENDS ${DOC_SOURCES} ${DOC_FIGS} ${source_doxygen} @@ -97,7 +97,11 @@ add_custom_target(gforge-sync ) add_dependencies(gforge-sync documentation) -endif() # Doxygen found +else(enable_documentation) + ADD_CUSTOM_TARGET(documentation + COMMENT "The generation of the SimGrid documentation was disabled in cmake" + ) +endif(enable_documentation) if (Java_FOUND) find_path(JAVADOC_PATH NAMES javadoc PATHS NO_DEFAULT_PATHS)