]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix: Unset Metis if it is not a suitable version
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 4 Oct 2012 21:17:44 +0000 (21:17 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 4 Oct 2012 21:17:44 +0000 (21:17 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26959 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_metis.cmake
deal.II/cmake/modules/FindMETIS.cmake

index dba4ba4f5a7b59f87bc5853b11e63ff246dcaab7..60f3f6f6f46b48ed7098d434841b51bf4a2629c7 100644 (file)
@@ -27,6 +27,10 @@ MACRO(FEATURE_METIS_FIND_EXTERNAL var)
       "Could not find a sufficient modern metis installation: "
       "Version 5.x required!\n\n"
       )
+    UNSET(METIS_LIBRARY CACHE)
+    UNSET(METIS_INCLUDE_DIR CACHE)
+    UNSET(METIS_DIR CACHE)
+    UNSET(METIS_FOUND CACHE)
   ENDIF()
 ENDMACRO()
 
index 8c484833abb5d962b820b224668696993cd5b8cb..285ba645638aabd925015bf341d6178a714dc0c4 100644 (file)
@@ -21,11 +21,8 @@ INCLUDE(FindPackageHandleStandardArgs)
 SET_IF_EMPTY(METIS_DIR "$ENV{METIS_DIR}")
 
 #
-# Metis (at least up to version 4.*) is usually pretty self contained. So
-# no external dependencies so far.
-#
-# TODO: What about metis-5.* (e.g. coming from parmetis) This could have
-# deps on pcre and mpi...
+# TODO: Metis is usually pretty self contained. So no external dependencies
+# so far... BUt there could be dependencies on pcre and mpi...
 #
 
 FIND_PATH(METIS_INCLUDE_DIR metis.h

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.