From: bangerth Date: Tue, 8 Oct 2013 14:18:30 +0000 (+0000) Subject: Improve error message. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7f620927d5c3be15d5f24e1118b6f3596ab7898;p=dealii-svn.git Improve error message. git-svn-id: https://svn.dealii.org/trunk@31171 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/setup_custom_targets.cmake b/deal.II/cmake/setup_custom_targets.cmake index 58d5baf53a..864ebc955b 100644 --- a/deal.II/cmake/setup_custom_targets.cmake +++ b/deal.II/cmake/setup_custom_targets.cmake @@ -40,9 +40,17 @@ FOREACH(_component compat_files documentation examples mesh_converter parameter_ ELSE() + STRING(TOUPPER ${_component} _componentuppercase) ADD_CUSTOM_TARGET(${_component} - COMMAND ${CMAKE_COMMAND} -E echo "Error: Could not build and install disabled component \"${_component}\"." - && ${CMAKE_COMMAND} -E echo "Please reconfigure with -DDEAL_II_COMPONENT_${_component}=yes" + COMMAND + ${CMAKE_COMMAND} -E echo '' + && ${CMAKE_COMMAND} -E echo '' + && ${CMAKE_COMMAND} -E echo '***************************************************************************' + && ${CMAKE_COMMAND} -E echo "** Error: Could not build and install disabled component \"${_component}\"." + && ${CMAKE_COMMAND} -E echo "** Please reconfigure with -DDEAL_II_COMPONENT_${_componentuppercase}=ON" + && ${CMAKE_COMMAND} -E echo '***************************************************************************' + && ${CMAKE_COMMAND} -E echo '' + && ${CMAKE_COMMAND} -E echo '' && false )