# #
###########################################################################
-SET(VERSION "8.0.pre")
-
#
# General configuration for cmake:
#
SET(DEAL_II_PACKAGE_NAME "@DEAL_II_PACKAGE_NAME@")
SET(DEAL_II_PACKAGE_VERSION "@DEAL_II_PACKAGE_VERSION@")
-SET(DEAL_II_VERSION "@DEAL_II_VERSION_MAJOR@.@DEAL_II_VERSION_MINOR@")
+SET(DEAL_II_VERSION "@DEAL_II_VERSION@")
SET(DEAL_II_VERSION_MAJOR "@DEAL_II_VERSION_MAJOR@")
SET(DEAL_II_VERSION_MINOR "@DEAL_II_VERSION_MINOR@")
enable-threads = @MAKEFILE_enablethreads@
enable-shared = @MAKEFILE_enableshared@
enable-parser = @MAKEFILE_enableparser@
-DEAL_II_VERSION = @VERSION@
+DEAL_II_VERSION = @DEAL_II_PACKAGE_VERSION@
DEAL_II_MAJOR = @DEAL_II_VERSION_MAJOR@
DEAL_II_MINOR = @DEAL_II_VERSION_MINOR@
# General information about deal.II:
#
# DEAL_II_PACKAGE_NAME *)
-# DEAL_II_PACKAGE_VERSION **)
+# DEAL_II_PACKAGE_VERSION *)
# DEAL_II_VERSION_MAJOR
# DEAL_II_VERSION_MINOR
+# DEAL_II_VERSION
#
# Information about paths, install locations and names:
#
# DEAL_II_WITH_DOC_DIRECTORY
#
# *) Can be overwritten by the command line via -D<...>
-# **) Will be set with to the value of ${VERSION}
#
###########################################################################
SET_IF_EMPTY(DEAL_II_PACKAGE_NAME "deal.II")
-SET(DEAL_II_PACKAGE_VERSION ${VERSION})
+SET_IF_EMPTY(DEAL_II_PACKAGE_VERSION "8.0.pre") # TODO: Get this value from somewhere else
STRING(REGEX REPLACE
- "^([0-9]+)\\..*" "\\1" DEAL_II_VERSION_MAJOR "${VERSION}"
+ "^([0-9]+)\\..*" "\\1" DEAL_II_VERSION_MAJOR "${DEAL_II_PACKAGE_VERSION}"
)
STRING(REGEX REPLACE
- "^[0-9]+\\.([0-9]+).*" "\\1" DEAL_II_VERSION_MINOR "${VERSION}"
+ "^[0-9]+\\.([0-9]+).*" "\\1" DEAL_II_VERSION_MINOR "${DEAL_II_PACKAGE_VERSION}"
)
+SET(DEAL_II_VERSION ${DEAL_II_VERSION_MAJOR}.${DEAL_II_VERSION_MINOR})
###########################################################################
SET_TARGET_PROPERTIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}
PROPERTIES
- VERSION ${VERSION}
+ VERSION "${DEAL_II_PACKAGE_VERSION}"
#
# Sonaming: Well... we just use the version number.
# No point to wrack one's brain over the question whether a new version of
# a C++ library is still ABI backwards compatible :-]
#
- SOVERSION ${VERSION}
+ SOVERSION "${DEAL_II_PACKAGE_VERSION}"
LINK_FLAGS "${DEAL_II_SHARED_LINKER_FLAGS_${build}}"
COMPILE_DEFINITIONS "${DEAL_II_DEFINITIONS};${DEAL_II_DEFINITIONS_${build}}"
COMPILE_FLAGS "${DEAL_II_CXX_FLAGS_${build}}"