mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
26 lines
1017 B
PHP
26 lines
1017 B
PHP
INCLUDE(${ARCADIA_ROOT}/clickhouse/cmake/autogenerated_versions.txt)
|
|
|
|
# TODO: not sure if this is customizable per-binary
|
|
SET(VERSION_NAME "ClickHouse")
|
|
|
|
# TODO: not quite sure how to replace dash with space in ya.make
|
|
SET(VERSION_FULL "${VERSION_NAME}-${VERSION_STRING}")
|
|
|
|
CFLAGS (GLOBAL -DDBMS_NAME=\"ClickHouse\")
|
|
CFLAGS (GLOBAL -DDBMS_VERSION_MAJOR=${VERSION_MAJOR})
|
|
CFLAGS (GLOBAL -DDBMS_VERSION_MINOR=${VERSION_MINOR})
|
|
CFLAGS (GLOBAL -DDBMS_VERSION_PATCH=${VERSION_PATCH})
|
|
CFLAGS (GLOBAL -DVERSION_FULL=\"\\\"${VERSION_FULL}\\\"\")
|
|
CFLAGS (GLOBAL -DVERSION_MAJOR=${VERSION_MAJOR})
|
|
CFLAGS (GLOBAL -DVERSION_MINOR=${VERSION_MINOR})
|
|
CFLAGS (GLOBAL -DVERSION_PATCH=${VERSION_PATCH})
|
|
|
|
# TODO: not supported yet, not sure if ya.make supports arithmetic.
|
|
CFLAGS (GLOBAL -DVERSION_INTEGER=0)
|
|
|
|
CFLAGS (GLOBAL -DVERSION_NAME=\"\\\"${VERSION_NAME}\\\"\")
|
|
CFLAGS (GLOBAL -DVERSION_OFFICIAL=\"-arcadia\")
|
|
CFLAGS (GLOBAL -DVERSION_REVISION=${VERSION_REVISION})
|
|
CFLAGS (GLOBAL -DVERSION_STRING=\"\\\"${VERSION_STRING}\\\"\")
|
|
|