VersionNumber.cmake 1.05 KB
Newer Older
1
# Set the version number here for MantidVersion and the package filenames
2
# This follows Semantic Versioning https://semver.org
3
4
set ( VERSION_MAJOR 6 )
set ( VERSION_MINOR 0 )
5
6
7
8

# UNCOMMENT the next 'set' line to 'force' the patch version number to
# a value (instead of using the count coming out of 'git describe')
# DO NOT COMMIT THIS TO MASTER UNCOMMENTED, ONLY TO A RELEASE BRANCH
9
set ( VERSION_PATCH 0 )
10
11

# The tweak is mean to keep in line with the pre-release numbering.
12
# https://semver.org/
13
14
15
# examples: First release cadidate for tweak 1 is "-1-rc.1"
#           Second release cadidate for tweak 1 is "-1-rc.2"
#           Actual tweak release is "-1"
Peterson, Peter's avatar
Peterson, Peter committed
16
set ( VERSION_TWEAK "-1-rc.1" )
17
18
19
20
21
22
23
24
25
26
27
# pep440 is incompatible with semantic versioning
# https://www.python.org/dev/peps/pep-0440/
# example: First release cadidate for tweak 1 is ".1rc.1"
string ( REPLACE "-rc."
                 "rc"
                 VERSION_TWEAK_PY
                 ${VERSION_TWEAK})
string ( REPLACE "-"
                 "."
                 VERSION_TWEAK_PY
                 ${VERSION_TWEAK_PY})