]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Unify version variables
authorMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 16 Aug 2013 21:55:16 +0000 (21:55 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Fri, 16 Aug 2013 21:55:16 +0000 (21:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@30320 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindPETSC.cmake
deal.II/cmake/modules/FindSLEPC.cmake
deal.II/cmake/modules/FindTRILINOS.cmake

index 119fa42026a9d27e7e6b43d3ad35766239990ab4..1b2bce50497884b9d14c3dc6bf266183a4ab99cf 100644 (file)
@@ -199,7 +199,9 @@ IF(PETSC_FOUND)
     PETSC_VERSION_PATCH "${PETSC_VERSION_PATCH_STRING}"
     )
 
-  SET(PETSC_VERSION "${PETSC_VERSION_MAJOR}.${PETSC_VERSION_MINOR}.${PETSC_VERSION_SUBMINOR}")
+  SET(PETSC_VERSION
+    "${PETSC_VERSION_MAJOR}.${PETSC_VERSION_MINOR}.${PETSC_VERSION_SUBMINOR}.${PETSC_VERSION_PATCH}"
+    )
 
   MARK_AS_ADVANCED(PETSC_ARCH PETSC_DIR)
 ELSE()
index ddb706d05b4b47998254d9f9d144585a5b7d258c..9de3500f453cf9b2ae9dd32666458082ecc809bf 100644 (file)
@@ -121,7 +121,9 @@ IF(SLEPC_FOUND)
     SLEPC_VERSION_PATCH "${SLEPC_VERSION_PATCH_STRING}"
     )
 
-  SET(SLEPC_VERSION "${SLEPC_VERSION_MAJOR}.${SLEPC_VERSION_MINOR}.${SLEPC_VERSION_SUBMINOR}")
+  SET(SLEPC_VERSION
+    "${SLEPC_VERSION_MAJOR}.${SLEPC_VERSION_MINOR}.${SLEPC_VERSION_SUBMINOR}.${SLEPC_VERSION_PATCH}"
+    )
 
   MARK_AS_ADVANCED(SLEPC_DIR)
 ELSE()
index f5f8d2240df28728684876897210e93ed334ed34..184056045874e939441c3bf118dd0d8d7d71da6b 100644 (file)
@@ -22,6 +22,7 @@
 #   TRILINOS_DIR (cached)
 #   TRILINOS_INCLUDE_DIRS
 #   TRILINOS_LIBRARIES
+#   TRILINOS_VERSION
 #   TRILINOS_VERSION_MAJOR
 #   TRILINOS_VERSION_MINOR
 #   TRILINOS_VERSION_SUBMINOR
@@ -96,8 +97,10 @@ MARK_AS_ADVANCED(TRILINOS_CONFIG_DIR)
 
 IF(TRILINOS_FOUND)
   #
-  # Extract the major and minor version numbers:
+  # Extract version numbers:
   #
+  SET(TRILINOS_VERSION "${Trilinos_VERSION}")
+
   STRING(REGEX REPLACE
     "^([0-9]+).*$" "\\1"
     TRILINOS_VERSION_MAJOR "${Trilinos_VERSION}")

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.