]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Promote some messages to WARNING level
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 26 Sep 2012 21:29:13 +0000 (21:29 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 26 Sep 2012 21:29:13 +0000 (21:29 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26763 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_metis.cmake
deal.II/cmake/configure/configure_petsc.cmake
deal.II/cmake/modules/FindPETSC.cmake

index 2df540c719761b3ca6500ad17087c0f0b7903d95..a962c235434f46982273bb41160f88013c15e199 100644 (file)
@@ -8,7 +8,7 @@ MACRO(FEATURE_METIS_FIND_EXTERNAL var)
   IF(METIS_FOUND AND METIS_MAJOR GREATER 4)
     SET(${var} TRUE)
   ELSE()
-    MESSAGE(STATUS 
+    MESSAGE(WARNING
       "Could not find a sufficient modern metis installation: "
       "Version 5.x required!"
       )
index f638891809df1a71efb24ead24a0667dacb33ed4..57dd1fc9e608c37008e390afe42804d32400ebba 100644 (file)
@@ -16,9 +16,9 @@ MACRO(FEATURE_PETSC_FIND_EXTERNAL var)
     # We support petsc from version 3.x.x onwards
     #
     IF(PETSC_VERSION_MAJOR LESS 3)
-      MESSAGE(WARNING
+      MESSAGE(WARNING "\n"
         "Could not find a sufficient modern petsc installation: "
-        "Version >=3.0.0 required!"
+        "Version >=3.0.0 required!\n\n"
         )
       SET(${var} FALSE)
     ENDIF()
@@ -34,9 +34,9 @@ MACRO(FEATURE_PETSC_FIND_EXTERNAL var)
     IF( (PETSC_WITH_MPIUNI AND DEAL_II_COMPILER_SUPPORTS_MPI)
          OR
          (NOT PETSC_WITH_MPIUNI AND NOT DEAL_II_COMPILER_SUPPORTS_MPI))
-      MESSAGE(WARNING
+      MESSAGE(WARNING "\n"
         "Could not find a sufficient petsc installation: "
-        "Petsc has to be configured with the same MPI configuration as deal.II."
+        "Petsc has to be configured with the same MPI configuration as deal.II.\n\n"
         )
       SET(${var} FALSE)
     ENDIF()
index 6380dffa89efb3960e0799c91a5b448094ce85e9..f8b179d7dba3e93b842d240061b2a09d2c2576a0 100644 (file)
@@ -193,7 +193,16 @@ IF(PETSC_FOUND)
   MARK_AS_ADVANCED(
     PETSC_LIBRARIES
     PETSC_INCLUDE_DIRS
+    PETSC_DIR
+    PETSC_ARCH
   )
+ELSE()
+  SET(PETSC_DIR "" CACHE STRING
+    "An optional hint to a PETSc directory"
+    )
+  SET(PETSC_ARCH "" CACHE STRING
+    "An optional hint to a PETSc arch"
+    )
 ENDIF()
 
 #

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.