(re)added "-dev" suffix for the CMake hardcoded version number
authorSzilard Pall <pszilard@cbr.su.se>
Fri, 29 Oct 2010 14:18:01 +0000 (16:18 +0200)
committerSzilard Pall <pszilard@cbr.su.se>
Fri, 29 Oct 2010 16:07:52 +0000 (18:07 +0200)
This avoids the potential confusion when the source from a git
release banch is used on machines without git. In these cases the
version reported by gromacs binaries would be the same as the
version of an official release, while former might actually
differ from the release in some patches from git.

CMakeLists.txt

index 420b0be24a833a4bcdb1907718a8835ca53d3a11..ab019fc1d9e2fb3c87f247e200380c4e0f44c45f 100644 (file)
@@ -3,9 +3,16 @@ cmake_minimum_required(VERSION 2.6)
 project(Gromacs)
 include(Dart)
 mark_as_advanced(DART_ROOT)
+
 # PROJECT_VERSION should have the following structure: 
-# VERSION[-dev-SUFFIX] where the VERSION can have any form and the suffix
-set(PROJECT_VERSION "4.5.1")
+# VERSION-dev[-SUFFIX] where the VERSION should have the for: vMajor.vMinor.vPatch
+#
+# The "-dev" suffix is important to keep because it makes possible to distinguish 
+# between a build from official release and a build from git release branch on a 
+# machine with no git. 
+#
+# NOTE: when releasing the "-dev" suffix needs to be stripped off!
+set(PROJECT_VERSION "4.5.1-dev")
 set(CUSTOM_VERSION_STRING ""
     CACHE STRING "Custom version string (if empty, use hard-coded default)")
 mark_as_advanced(CUSTOM_VERSION_STRING)