From: maier Date: Sat, 27 Apr 2013 19:39:21 +0000 (+0000) Subject: CMake: Introduce a VERSION that will be queried for the version number X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=065dbddcdbb56975522ceeaf5b1716eadf173de1;p=dealii-svn.git 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 --- 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 "