]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Degrade some WARNINGS to STATUS messages
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 23 Sep 2012 21:20:03 +0000 (21:20 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 23 Sep 2012 21:20:03 +0000 (21:20 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26650 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_1_tbb.cmake
deal.II/cmake/configure/configure_functionparser.cmake

index 8804386f8e671a73256c8bc37d74469f0dc69845..353ef9edf71c99479da7362e76f28a28a22b6d50 100644 (file)
@@ -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()
index 51fd8d4dcd83bd0e198153f9cb1f26ddf7fc6228..9f226cd57e8e3fe4aaadc98b2f7e452d33c5ad48 100644 (file)
@@ -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)
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.