From ffe024fbad4541b572fd9965e51806bfd081cf29 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 10 Dec 2014 15:20:26 +0100 Subject: [PATCH] also add the 'package' target to $ make info output --- cmake/setup_custom_targets.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 # -- 2.39.5