From 2a0f169242e6bc4041c2241f5499671d90eda827 Mon Sep 17 00:00:00 2001 From: Szilard Pall Date: Fri, 29 Oct 2010 16:18:01 +0200 Subject: [PATCH] (re)added "-dev" suffix for the CMake hardcoded version number 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 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 420b0be24a..ab019fc1d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.22.0