-
Notifications
You must be signed in to change notification settings - Fork 19
/
version.cmake
34 lines (33 loc) · 999 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
24
25
26
27
28
29
30
31
32
33
34
###
## Version Information
###
set ( HPCC_NAME "ECL IDE" )
set ( HPCC_PROJECT "eclide" )
set ( HPCC_AUDIENCE "community" )
set ( HPCC_MAJOR 9 )
set ( HPCC_MINOR 9 )
set ( HPCC_POINT 0 )
set ( HPCC_MATURITY "trunk" )
set ( HPCC_SEQUENCE 0 )
###
IF ( ${HPCC_SEQUENCE} GREATER 99 )
error ( "HPCC_SEQUENCE must be less than 100." )
ENDIF ( )
# HPCC_VERSION must be of the format 255.255.255.65535 ---
# Samples: 6.10.2.001 (6.10.2-1rc)
# 6.10.2.101 (6.10.2-1)
# 6.10.2.102 (6.10.2-2)
# 6.10.23.045 (6.10.23-45rc)
# 6.10.67.189 (6.10.67-89)
IF ( "${HPCC_MATURITY}" STREQUAL "release" )
SET ( HPCC_BUILD "1" )
ELSE ( )
SET ( HPCC_BUILD "0" )
ENDIF ( )
IF ( ${HPCC_SEQUENCE} LESS 10 )
SET ( HPCC_BUILD "${HPCC_BUILD}0${HPCC_SEQUENCE}" )
ELSE ( )
SET ( HPCC_BUILD "${HPCC_BUILD}${HPCC_SEQUENCE}" )
ENDIF ( )
SET ( HPCC_VERSION ${HPCC_MAJOR}.${HPCC_MINOR}.${HPCC_POINT}.${HPCC_BUILD} )
MESSAGE ( "HPCC_VERSION: ${HPCC_VERSION}" )