2017-01-18 23:28:23 +00:00
|
|
|
#This strings autochanged from release_lib.sh :
|
2017-02-09 07:16:31 +00:00
|
|
|
set(VERSION_DESCRIBE v1.1.54160-testing)
|
|
|
|
set(VERSION_REVISION 54160)
|
2017-01-18 23:28:23 +00:00
|
|
|
#===end of autochange
|
|
|
|
|
2017-02-14 12:34:32 +00:00
|
|
|
set (VERSION_MAJOR 1)
|
|
|
|
set (VERSION_MINOR 1)
|
|
|
|
set (VERSION_PATCH ${VERSION_REVISION})
|
|
|
|
set (VERSION_EXTRA "")
|
|
|
|
set (VERSION_TWEAK "")
|
|
|
|
|
|
|
|
set (VERSION_STRING "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
2017-01-18 23:28:23 +00:00
|
|
|
if (VERSION_TWEAK)
|
|
|
|
set(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)
|
|
|
|
set(VERSION_STRING "${VERSION_STRING}${VERSION_EXTRA}")
|
2017-02-14 12:34:32 +00:00
|
|
|
endif ()
|
|
|
|
|
|
|
|
set (VERSION_FULL "${PROJECT_NAME} ${VERSION_STRING}")
|
2017-01-18 23:28:23 +00:00
|
|
|
|
2017-02-14 12:34:32 +00:00
|
|
|
if (APPLE)
|
|
|
|
# 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}")
|
|
|
|
else ()
|
|
|
|
set (VERSION_SO "${VERSION_STRING}")
|
|
|
|
endif ()
|