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()
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()
# TRILINOS_DIR (cached)
# TRILINOS_INCLUDE_DIRS
# TRILINOS_LIBRARIES
+# TRILINOS_VERSION
# TRILINOS_VERSION_MAJOR
# TRILINOS_VERSION_MINOR
# TRILINOS_VERSION_SUBMINOR
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