2017-06-28 13:20:57 +00:00
|
|
|
# This strings autochanged from release_lib.sh:
|
2018-07-20 01:00:20 +00:00
|
|
|
set(VERSION_REVISION 54396 CACHE STRING "")
|
|
|
|
set(VERSION_MAJOR 18 CACHE STRING "")
|
2018-07-20 00:18:16 +00:00
|
|
|
set(VERSION_MINOR 1 CACHE STRING "")
|
2018-07-20 01:00:20 +00:00
|
|
|
set(VERSION_PATCH 0 CACHE STRING "")
|
|
|
|
set(VERSION_GITHASH 550f41bc65cb03201acad489e7b96ea346ed8259 CACHE STRING "")
|
|
|
|
set(VERSION_DESCRIBE v18.1.0-testing CACHE STRING "")
|
|
|
|
set(VERSION_STRING 18.1.0 CACHE STRING "")
|
2017-06-28 13:20:57 +00:00
|
|
|
# end of autochange
|
2017-01-18 23:28:23 +00:00
|
|
|
|
2018-07-17 11:15:14 +00:00
|
|
|
set(VERSION_EXTRA "" CACHE STRING "")
|
|
|
|
set(VERSION_TWEAK "" CACHE STRING "")
|
2017-02-14 12:34:32 +00:00
|
|
|
|
2017-01-18 23:28:23 +00:00
|
|
|
if (VERSION_TWEAK)
|
2018-07-17 11:15:14 +00:00
|
|
|
string(CONCAT VERSION_STRING ${VERSION_STRING} "." ${VERSION_TWEAK})
|
2017-02-14 12:34:32 +00:00
|
|
|
endif ()
|
2017-01-18 23:28:23 +00:00
|
|
|
if (VERSION_EXTRA)
|
2018-07-17 11:15:14 +00:00
|
|
|
string(CONCAT VERSION_STRING ${VERSION_STRING} "." ${VERSION_EXTRA})
|
2017-02-14 12:34:32 +00:00
|
|
|
endif ()
|
|
|
|
|
2018-07-18 09:48:45 +00:00
|
|
|
set (VERSION_NAME "${PROJECT_NAME}")
|
|
|
|
set (VERSION_FULL "${VERSION_NAME} ${VERSION_STRING}")
|
2017-01-18 23:28:23 +00:00
|
|
|
|
2017-02-14 12:34:32 +00:00
|
|
|
if (APPLE)
|
2017-04-01 07:20:54 +00:00
|
|
|
# dirty hack: ld: malformed 64-bit a.b.c.d.e version number: 1.1.54160
|
|
|
|
math (EXPR VERSION_SO1 "${VERSION_REVISION}/255")
|
|
|
|
math (EXPR VERSION_SO2 "${VERSION_REVISION}%255")
|
|
|
|
set (VERSION_SO "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_SO1}.${VERSION_SO2}")
|
2017-02-14 12:34:32 +00:00
|
|
|
else ()
|
2017-04-01 07:20:54 +00:00
|
|
|
set (VERSION_SO "${VERSION_STRING}")
|
2017-02-14 12:34:32 +00:00
|
|
|
endif ()
|