From 96f5916c8ada0bd2bab60740da5aeddd1472ca3c Mon Sep 17 00:00:00 2001 From: maier Date: Sun, 23 Sep 2012 21:20:03 +0000 Subject: [PATCH] Degrade some WARNINGS to STATUS messages git-svn-id: https://svn.dealii.org/branches/branch_cmake@26650 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/configure/configure_1_tbb.cmake | 6 +++--- .../configure/configure_functionparser.cmake | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/deal.II/cmake/configure/configure_1_tbb.cmake b/deal.II/cmake/configure/configure_1_tbb.cmake index 8804386f8e..353ef9edf7 100644 --- a/deal.II/cmake/configure/configure_1_tbb.cmake +++ b/deal.II/cmake/configure/configure_1_tbb.cmake @@ -103,9 +103,9 @@ MACRO(FEATURE_TBB_CONFIGURE_EXTERNAL var) LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${TBB_DEBUG_LIBRARY}) ADD_DEFINITIONS("-DTBB_USE_DEBUG=1" "-DTBB_DO_ASSERT=1") ELSE() - MESSAGE(WARNING "\n" - "deal.II was configured with CMAKE_BUILD_TYPE=Debug but no debug tbb\n" - "library was found. The regular tbb library will be used instead.\n\n" + MESSAGE(STATUS + "deal.II was configured with CMAKE_BUILD_TYPE=Debug but no debug tbb " + "library was found. The regular tbb library will be used instead." ) LIST(APPEND DEAL_II_EXTERNAL_LIBRARIES ${TBB_LIBRARY}) ENDIF() diff --git a/deal.II/cmake/configure/configure_functionparser.cmake b/deal.II/cmake/configure/configure_functionparser.cmake index 51fd8d4dcd..9f226cd57e 100644 --- a/deal.II/cmake/configure/configure_functionparser.cmake +++ b/deal.II/cmake/configure/configure_functionparser.cmake @@ -1,6 +1,6 @@ MACRO(FEATURE_FUNCTIONPARSER_FIND_EXTERNAL var) - MESSAGE(WARNING "\n" - "No module available for finding functionparser externally.\n\n" + MESSAGE(STATUS + "No module available for finding functionparser externally." ) ENDMACRO() @@ -36,5 +36,16 @@ MACRO(FEATURE_FUNCTIONPARSER_CONFIGURE_CONTRIB var) ENDMACRO() +SET(FEATURE_FUNCTIONPARSER_CUSTOM_ERROR_MESSAGE TRUE) + + +MACRO(FEATURE_FUNCTIONPARSER_ERROR_MESSAGE) + MESSAGE(SEND_ERROR "\n" + "No module available for finding functionparser externally.\n" + "Disable DEAL_II_WITH_FUNCTIONPARSER, or enable DEAL_II_ALLOW_CONTRIB.\n\n" + ) +ENDMACRO() + + CONFIGURE_FEATURE(FUNCTIONPARSER) -- 2.39.5