From: Matthias Maier Date: Wed, 10 Dec 2014 14:20:26 +0000 (+0100) Subject: also add the 'package' target to $ make info output X-Git-Tag: v8.2.0-rc1~23^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffe024fbad4541b572fd9965e51806bfd081cf29;p=dealii.git also add the 'package' target to $ make info output --- diff --git a/cmake/setup_custom_targets.cmake b/cmake/setup_custom_targets.cmake index b6e360ad93..8a162f3a82 100644 --- a/cmake/setup_custom_targets.cmake +++ b/cmake/setup_custom_targets.cmake @@ -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 #