ClickHouse/dbms/cmake/version.cmake

31 lines
1.1 KiB
CMake
Raw Normal View History

2017-06-28 13:20:57 +00:00
# This strings autochanged from release_lib.sh:
2018-07-17 13:19:40 +00:00
set(VERSION_REVISION 54395 CACHE STRING "")
2018-07-17 11:15:14 +00:00
set(VERSION_MAJOR 1 CACHE STRING "")
2018-07-17 13:19:40 +00:00
set(VERSION_MINOR 1 CACHE STRING "")
set(VERSION_PATCH 54398 CACHE STRING "")
set(VERSION_GITHASH 4b31f389b743c69af688788c0d0cdb8973aefa77 CACHE STRING "")
set(VERSION_DESCRIBE v1.1.54398-testing CACHE STRING "")
set(VERSION_STRING 1.1.54398 CACHE STRING "")
2017-06-28 13:20:57 +00:00
# end of autochange
2018-07-17 11:15:14 +00:00
set(VERSION_EXTRA "" CACHE STRING "")
set(VERSION_TWEAK "" CACHE STRING "")
if (VERSION_TWEAK)
2018-07-17 11:15:14 +00:00
string(CONCAT VERSION_STRING ${VERSION_STRING} "." ${VERSION_TWEAK})
endif ()
if (VERSION_EXTRA)
2018-07-17 11:15:14 +00:00
string(CONCAT 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 ()