VersionNumber.cmake 1.09 KB
Newer Older
1
# Set the version number here for MantidVersion and the package filenames
2
# This follows Semantic Versioning https://semver.org
3
set ( VERSION_MAJOR 6 )
StephenSmith25's avatar
StephenSmith25 committed
4
set ( VERSION_MINOR 1 )
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"
16
set ( VERSION_TWEAK "-2-rc.3" )
Peterson, Peter's avatar
Peterson, Peter committed
17

18
19
20
# pep440 is incompatible with semantic versioning
# https://www.python.org/dev/peps/pep-0440/
# example: First release cadidate for tweak 1 is ".1rc.1"
21
22
23
24
25
26
27
28
29
30
if ( VERSION_TWEAK )
  string ( REPLACE "-rc."
                   "rc"
                   VERSION_TWEAK_PY
                   ${VERSION_TWEAK})
  string ( REPLACE "-"
                   "."
                   VERSION_TWEAK_PY
                   ${VERSION_TWEAK_PY})
endif()