]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Checking PETSc-SLEPc compatibility is VERSION_SUBMINOR independent and way to restric...
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 31 Jul 2013 09:18:29 +0000 (09:18 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 31 Jul 2013 09:18:29 +0000 (09:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@30191 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_slepc.cmake

index 269f85daa1a0cf3f0e815d6c6c41800eb400cfb0..c0d1b212b0b6fe3865a1147d614a9b5a7fc0a857 100644 (file)
@@ -25,9 +25,14 @@ MACRO(FEATURE_SLEPC_FIND_EXTERNAL var)
 
   IF(SLEPC_FOUND)
     #
-    # Check whether SLEPc and PETSc are compatible.
+    # Check whether SLEPc and PETSc are compatible according to
+    # SLEPc's rules: This is equivalent to asking if the VERSION_MAJOR
+    # and VERSION_MINOR of PETSc and SLEPc are
+    # equivalent; and where VERSION_SUBMINORs are allowed to differ.
     #
-    IF("${SLEPC_VERSION}" STREQUAL "${PETSC_VERSION}")
+    IF( ("${SLEPC_VERSION_MAJOR}" STREQUAL "${PETSC_VERSION_MAJOR}")
+       AND
+       ("${SLEPC_VERSION_MINOR}" STREQUAL "${PETSC_VERSION_MINOR}"))
       SET(${var} TRUE)
     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.