mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
31 lines
978 B
CMake
31 lines
978 B
CMake
# This strings autochanged from release_lib.sh:
|
|
set(VERSION_DESCRIBE v1.1.54386-testing)
|
|
set(VERSION_REVISION 54386)
|
|
set(VERSION_GITHASH 9b285c91b001c35ab0b3b5a7352b51e095013b7d)
|
|
# end of autochange
|
|
|
|
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}")
|
|
if (VERSION_TWEAK)
|
|
set(VERSION_STRING "${VERSION_STRING}.${VERSION_TWEAK}")
|
|
endif ()
|
|
if (VERSION_EXTRA)
|
|
set(VERSION_STRING "${VERSION_STRING}${VERSION_EXTRA}")
|
|
endif ()
|
|
|
|
set (VERSION_FULL "${PROJECT_NAME} ${VERSION_STRING}")
|
|
|
|
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 ()
|