From 3145a102da1646c4fb52f223054a24d5dd64b657 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 26 Jan 2024 09:59:50 -0700 Subject: [PATCH] Simplify generation of a cmake message. --- cmake/configure/configure_20_trilinos.cmake | 30 +++++---------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/cmake/configure/configure_20_trilinos.cmake b/cmake/configure/configure_20_trilinos.cmake index 97fd5d9edd..4cd100d01a 100644 --- a/cmake/configure/configure_20_trilinos.cmake +++ b/cmake/configure/configure_20_trilinos.cmake @@ -283,18 +283,9 @@ macro(feature_trilinos_find_external var) if(NOT DEAL_II_HAVE_TPETRA_INT_LONG_LONG AND DEAL_II_WITH_64BIT_INDICES) message( STATUS - " Tpetra wasn't configured with support for 64-bit global indices" - ) - message( - STATUS - " but deal.II is configured to use 64-bit global indices. " - ) - message( - STATUS - " Either reconfigure deal.II with -DDEAL_II_WITH_64_BIT_INDICES=OFF." - ) - message( - STATUS + " Tpetra wasn't configured with support for 64-bit global indices\n" + " but deal.II is configured to use 64-bit global indices.\n" + " Either reconfigure deal.II with -DDEAL_II_WITH_64_BIT_INDICES=OFF.\n" " or rebuild Trilinos with -DTPETRA_INST_INT_LONG_LONG=ON" ) if(DEAL_II_HAVE_TPETRA_INT_LONG) @@ -311,18 +302,9 @@ macro(feature_trilinos_find_external var) elseif(NOT DEAL_II_HAVE_TPETRA_INT_INT AND NOT DEAL_II_WITH_64BIT_INDICES) message( STATUS - " Tpetra wasn't configured with support for 32-bit global indices" - ) - message( - STATUS - " but deal.II is configured to use 32-bit global indices. " - ) - message( - STATUS - " Either reconfigure deal.II with -DDEAL_II_WITH_64_BIT_INDICES=ON." - ) - message( - STATUS + " Tpetra wasn't configured with support for 32-bit global indices\n" + " but deal.II is configured to use 32-bit global indices.\n" + " Either reconfigure deal.II with -DDEAL_II_WITH_64_BIT_INDICES=ON.\n" " or rebuild Trilinos with -DTPETRA_INST_INT_INT=ON" ) if(DEAL_II_HAVE_TPETRA_INT_LONG) -- 2.39.5