]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Fix a cache invalidation issue with the DEAL_II_COMPONENT_DOCUMENTATION toggle
authorMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 12 Mar 2013 11:24:00 +0000 (11:24 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Tue, 12 Mar 2013 11:24:00 +0000 (11:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@28864 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/CMakeLists.txt
deal.II/doc/CMakeLists.txt
deal.II/doc/doxygen/CMakeLists.txt

index 5cb5f2936856cbde9ec2c54084b7e6b4ce2d338c..f2edc9f9c7758bc089fc66e69ecc2b89da8da4fa 100644 (file)
@@ -115,6 +115,9 @@ INCLUDE(setup_finalize)
 #                                                                         #
 ###########################################################################
 
+MESSAGE(STATUS "")
+MESSAGE(STATUS "Configuring done. Include CMakeLists.txt now.")
+
 IF(DEAL_II_HAVE_BUNDLED_DIRECTORY)
   ADD_SUBDIRECTORY(bundled)
 ENDIF()
@@ -145,4 +148,3 @@ INCLUDE(setup_custom_targets)
 #
 FILE(READ ${CMAKE_BINARY_DIR}/summary.log DEAL_II_LOG_SUMMARY)
 MESSAGE("${DEAL_II_LOG_SUMMARY}")
-
index d3565b18d47f6daa6a48cb7ff7551369c8556f11..fd7d788e0e916d29ac0c2034d3a2bb12a7c4eb0c 100644 (file)
 ##
 #####
 
+
 #
-# Set up all necessary bits for the documentation
+# Required packages for the document generation:
 #
+FIND_PACKAGE(Perl)
+FIND_PACKAGE(Doxygen)
+
 
+#
+# Set up all necessary bits for the documentation
+#
 IF(DEAL_II_COMPONENT_DOCUMENTATION)
 
+  #
+  # Do we have all necessary dependencies?
+  #
+  IF(NOT PERL_FOUND)
+    MESSAGE(FATAL_ERROR
+      "Could not find a perl installation which is required for building the documentation"
+      )
+  ENDIF()
+  IF(NOT DOXYGEN_FOUND OR NOT DOXYGEN_DOT_FOUND)
+    MESSAGE(FATAL_ERROR
+      "Could not find doxygen and dot which is required for building the documentation"
+      )
+  ENDIF()
+
   #
   # Generate the source documentation via doxygen:
   #
index 58c74d4c892fda3df4ce70085d080ebf5944f51b..3fbaecae6b63564825fd0aac86f612d197db12b7 100644 (file)
 ##
 #####
 
-FIND_PACKAGE(Perl REQUIRED)
-FIND_PACKAGE(Doxygen REQUIRED)
-
-IF(NOT DOXYGEN_FOUND OR NOT DOXYGEN_DOT_FOUND)
-  # Just to be sure that we actually have dot...
-  MESSAGE(FATAL_ERROR
-    "Could not find doxygen and dot which is required for building the documentation"
-    )
-ENDIF()
-
-
 #
 # Prepare the example steps for doxygen:
 #
-
 ADD_SUBDIRECTORY(tutorial)
 ADD_SUBDIRECTORY(images)
 
-
 #
 # Prepare auxiliary files for doxygen:
 #
-
 CONFIGURE_FILE(
   ${CMAKE_CURRENT_SOURCE_DIR}/options.dox.in
   ${CMAKE_CURRENT_BINARY_DIR}/options.dox
@@ -60,7 +46,6 @@ CONFIGURE_FILE(
 #
 # Finalize the doxygen configuration:
 #
-
 file(GLOB doxygen_input
   ${CMAKE_CURRENT_SOURCE_DIR}/headers/*.h
   ${CMAKE_SOURCE_DIR}/contrib/parameter_gui/*.h
@@ -92,7 +77,6 @@ FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/options.dox"
 #
 # And, finally, call doxygen:
 #
-
 ADD_CUSTOM_COMMAND(
   OUTPUT
     ${CMAKE_CURRENT_BINARY_DIR}/doxygen.log

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.