]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Unify failure handling
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Mar 2013 15:03:54 +0000 (15:03 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 5 Mar 2013 15:03:54 +0000 (15:03 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28736 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_metis.cmake
deal.II/cmake/configure/configure_p4est.cmake
deal.II/cmake/configure/configure_petsc.cmake
deal.II/cmake/configure/configure_slepc.cmake
deal.II/cmake/configure/configure_trilinos.cmake
deal.II/cmake/modules/FindTRILINOS.cmake

index 0ea8164645323f591d632f1983fd2bcb49f46682..75df50a4a2695f52fdf37e907bc9e823c1bed5df 100644 (file)
@@ -30,7 +30,6 @@ MACRO(FEATURE_METIS_FIND_EXTERNAL var)
       UNSET(METIS_LIBRARY CACHE)
       UNSET(METIS_INCLUDE_DIR CACHE)
       UNSET(METIS_DIR CACHE)
-      UNSET(METIS_FOUND CACHE)
       SET(METIS_DIR "" CACHE STRING
         "An optional hint to a metis directory"
         )
index 1f30907f378225a42d1675e0ff08df234115abac..eb715a15c02463e1899349992351fd4d29a9fea9 100644 (file)
@@ -30,6 +30,14 @@ MACRO(FEATURE_P4EST_FIND_EXTERNAL var)
         "Could not find a sufficient p4est installation: "
         "P4est has to be configured with MPI support enabled.\n\n"
         )
+      UNSET(P4EST_DIR CACHE)
+      UNSET(P4EST_LIBRARY CACHE)
+      UNSET(P4EST_INCLUDE_DIR CACHE)
+      UNSET(SC_LIBRARY CACHE)
+      UNSET(SC_INCLUDE_DIR CACHE)
+      SET(P4EST_DIR "" CACHE STRING
+        "An optional hint to a p4est installation/directory"
+        )
     ELSE()
       SET(${var} TRUE)
     ENDIF()
index 8889afb6ca528291e6ff74dff61ba7470278edcc..7d6244f5d8bbe5c62b27216355247bc4c08654e6 100644 (file)
@@ -59,8 +59,13 @@ MACRO(FEATURE_PETSC_FIND_EXTERNAL var)
     IF(NOT ${var})
       UNSET(PETSC_INCLUDE_DIR_ARCH CACHE)
       UNSET(PETSC_INCLUDE_DIR_COMMON CACHE)
-      UNSET(PETSC_INCLUDE_DIRS CACHE)
-      UNSET(PETSC_LIBRARIES CACHE)
+      UNSET(PETSC_LIBRARY CACHE)
+      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()
   ENDIF()
 ENDMACRO()
index cca10ba12ff93ae5e6263eb8e50c247d08e22b81..e494b35af3d24ca56907fe6acad46796fe0f50d2 100644 (file)
@@ -35,8 +35,13 @@ MACRO(FEATURE_SLEPC_FIND_EXTERNAL var)
         )
       UNSET(SLEPC_INCLUDE_DIR_ARCH CACHE)
       UNSET(SLEPC_INCLUDE_DIR_COMMON CACHE)
-      UNSET(SLEPC_INCLUDE_DIRS CACHE)
-      UNSET(SLEPC_LIBRARIES CACHE)
+      UNSET(SLEPC_LIBRARY CACHE)
+      SET(SLEPC_DIR "" CACHE STRING
+        "An optional hint to a SLEPc directory"
+        )
+      SET(SLEPC_ARCH "" CACHE STRING
+        "An optional hint to a SLEPc arch"
+        )
 
       SET(${var} FALSE)
     ENDIF()
index aa36d5eb51b26c29bfdef5466a17ab001284de91..e76906e1041fdd6dd3ef1bbea4109bd5fd822e6d 100644 (file)
@@ -150,8 +150,6 @@ MACRO(FEATURE_TRILINOS_FIND_EXTERNAL var)
 
     IF(NOT ${var})
       UNSET(TRILINOS_DIR CACHE)
-      UNSET(TRILINOS_INCLUDE_DIRS CACHE)
-      UNSET(TRILINOS_LIBRARIES CACHE)
     ENDIF()
   ENDIF(TRILINOS_FOUND)
 ENDMACRO()
index b723a6b4a4a7a7b6180243a6df5a87f5037b983d..1ebd599e020e758476e75ee404d380b3a166d373 100644 (file)
@@ -17,7 +17,7 @@
 #
 # This module exports:
 #
-#   TRILINOS_DIR
+#   TRILINOS_DIR (cached)
 #   TRILINOS_INCLUDE_DIRS
 #   TRILINOS_LIBRARIES
 #   TRILINOS_VERSION_MAJOR
@@ -119,8 +119,6 @@ IF(TRILINOS_FOUND)
 
   MARK_AS_ADVANCED(
     TRILINOS_DIR
-    TRILINOS_INCLUDE_DIRS
-    TRILINOS_LIBRARIES
     )
 
 ELSE()

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.