]> AND Public Git Repository - simgrid.git/blobdiff - tools/cmake/Documentation.cmake
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into energy-pstate
[simgrid.git] / tools / cmake / Documentation.cmake
index 3b5f6b3d6486caf2e45a3640543e0a48b5ee702b..780d7d2c5e341e3e6dfc9a3d375b810e7b41fab8 100644 (file)
@@ -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)