From 42a4f0a9707a29835be3a95b920968e490fff23d Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 27 Apr 2013 19:39:21 +0000 Subject: [PATCH] CMake: Introduce a VERSION that will be queried for the version number git-svn-id: https://svn.dealii.org/trunk@29390 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/README | 14 ++++++++------ deal.II/VERSION | 1 + deal.II/cmake/setup_deal_ii.cmake | 3 ++- 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 deal.II/VERSION diff --git a/deal.II/README b/deal.II/README index 43609fc767..ba6501b3eb 100644 --- a/deal.II/README +++ b/deal.II/README @@ -1,9 +1,9 @@ What is deal.II? - deal.II is a C++ program library targeted at the computational solution of - partial differential equations using adaptive finite elements. It uses - state-of-the-art programming techniques to offer you a modern interface to - the complex data structures and algorithms required. + deal.II is a C++ program library targeted at the computational solution + of partial differential equations using adaptive finite elements. It uses + state-of-the-art programming techniques to offer you a modern interface + to the complex data structures and algorithms required. For the impatient: @@ -27,5 +27,7 @@ License: Please see the file LICENSE for details -For further information have a look at ./doc/readme.html or at -http://www.dealii.org. +Further information: + + For further information have a look at ./doc/readme.html or at + http://www.dealii.org. diff --git a/deal.II/VERSION b/deal.II/VERSION new file mode 100644 index 0000000000..941ceb5b07 --- /dev/null +++ b/deal.II/VERSION @@ -0,0 +1 @@ +8.0.pre diff --git a/deal.II/cmake/setup_deal_ii.cmake b/deal.II/cmake/setup_deal_ii.cmake index c77fa6d7b0..5b82eedd22 100644 --- a/deal.II/cmake/setup_deal_ii.cmake +++ b/deal.II/cmake/setup_deal_ii.cmake @@ -63,7 +63,8 @@ SET_IF_EMPTY(DEAL_II_PACKAGE_NAME "deal.II") -SET_IF_EMPTY(DEAL_II_PACKAGE_VERSION "8.0.pre") # TODO: Get this value from somewhere else +FILE(STRINGS "${CMAKE_SOURCE_DIR}/VERSION" _version LIMIT_COUNT 1) +SET_IF_EMPTY(DEAL_II_PACKAGE_VERSION "${_version}") SET_IF_EMPTY(DEAL_II_PACKAGE_VENDOR "The deal.II Authors " -- 2.39.5