]> https://gitweb.dealii.org/ - dealii.git/commitdiff
also add the 'package' target to $ make info output 293/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Wed, 10 Dec 2014 14:20:26 +0000 (15:20 +0100)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Wed, 10 Dec 2014 19:22:33 +0000 (20:22 +0100)
cmake/setup_custom_targets.cmake

index b6e360ad93c988cfcad112b0dc556fbe0913bf9c..8a162f3a82c7c5a309c7ea0eb4f9215c1580f1bc 100644 (file)
@@ -76,6 +76,21 @@ FOREACH(_component compat_files documentation examples mesh_converter parameter_
   ENDIF()
 ENDFOREACH()
 
+IF(NOT DEAL_II_COMPONENT_PACKAGE)
+  ADD_CUSTOM_TARGET(package
+    COMMAND
+         ${CMAKE_COMMAND} -E echo ''
+      && ${CMAKE_COMMAND} -E echo ''
+      && ${CMAKE_COMMAND} -E echo '***************************************************************************'
+      && ${CMAKE_COMMAND} -E echo "**  Error: Could not generate binary package. The component is disabled."
+      && ${CMAKE_COMMAND} -E echo "**  Please reconfigure with -DDEAL_II_COMPONENT_PACKAGE=ON"
+      && ${CMAKE_COMMAND} -E echo '***************************************************************************'
+      && ${CMAKE_COMMAND} -E echo ''
+      && ${CMAKE_COMMAND} -E echo ''
+      && false
+    )
+ENDIF()
+
 #
 # Provide an "info" target to print a help message:
 #
@@ -94,6 +109,7 @@ FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake
 #    all            - compile the library and all enabled components
 #    clean          - remove all generated files
 #    install        - install into CMAKE_INSTALL_PREFIX
+#
 #    info           - print this help message
 #    help           - print a list of valid top level targets
 #
@@ -107,6 +123,7 @@ FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/print_info.cmake
 #    library        - ${_description_string} component 'library'
 #    mesh_converter - ${_description_string} component 'mesh_converter'
 #    parameter_gui  - ${_description_string} component 'parameter_gui'
+#    package        - build binary package
 #
 #    test           - run a minimal set of tests
 #

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.