-
Notifications
You must be signed in to change notification settings - Fork 5
/
VERSION.cmake
23 lines (20 loc) · 935 Bytes
/
VERSION.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set( KDRIVE_VERSION_MAJOR 3 )
set( KDRIVE_VERSION_MINOR 6 )
set( KDRIVE_VERSION_PATCH 7 )
set( KDRIVE_VERSION_YEAR 2024 )
set( KDRIVE_SOVERSION 0 )
if (NOT DEFINED KDRIVE_VERSION_SUFFIX)
set(KDRIVE_VERSION_SUFFIX "") #e.g. beta1, beta2, rc1
endif (NOT DEFINED KDRIVE_VERSION_SUFFIX)
if (NOT DEFINED KDRIVE_VERSION_BUILD)
set(KDRIVE_VERSION_BUILD "0") # Integer ID. Generated by the build system
endif (NOT DEFINED KDRIVE_VERSION_BUILD)
# Composite defines
# Used e.g. for libraries Keep at x.y.z.
set(KDRIVE_VERSION "${KDRIVE_VERSION_MAJOR}.${KDRIVE_VERSION_MINOR}.${KDRIVE_VERSION_PATCH}")
# Version with Build ID. Used in the installer
set(KDRIVE_VERSION_FULL "${KDRIVE_VERSION}.${KDRIVE_VERSION_BUILD}")
set(KDRIVE_VERSION_STRING "${KDRIVE_VERSION}${KDRIVE_VERSION_SUFFIX}")
if (KDRIVE_VERSION_BUILD)
set(KDRIVE_VERSION_STRING "${KDRIVE_VERSION_STRING} (build ${KDRIVE_VERSION_BUILD})")
endif (KDRIVE_VERSION_BUILD)