]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Introduce a VERSION that will be queried for the version number
authorMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 27 Apr 2013 19:39:21 +0000 (19:39 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 27 Apr 2013 19:39:21 +0000 (19:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@29390 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/README
deal.II/VERSION [new file with mode: 0644]
deal.II/cmake/setup_deal_ii.cmake

index 43609fc7674aaa04bf7b90b52637a6a8046e7103..ba6501b3eb0d41b4ff694ecc2bcd69da59b43d35 100644 (file)
@@ -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 (file)
index 0000000..941ceb5
--- /dev/null
@@ -0,0 +1 @@
+8.0.pre
index c77fa6d7b0064b924cb7475b14f585e9977853cf..5b82eedd223bbf758b4a95081d6fba4d974ca775 100644 (file)
@@ -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 <http://www.dealii.org/>"

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.