CodeCommitsIssuesPull requestsActionsInsightsSecurity
7bc2c83b800f87624f5e7f3f6f57a8ee87bd2ee4

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

programs/server/CMakeLists.txt

33lines · modecode

1set(CLICKHOUSE_SERVER_SOURCES
2 MetricsTransmitter.cpp
3 Server.cpp
4)
5
6set (CLICKHOUSE_SERVER_LINK
7 PRIVATE
8 clickhouse_aggregate_functions
9 clickhouse_common_config
10 clickhouse_common_io
11 clickhouse_common_zookeeper
12 clickhouse_dictionaries
13 clickhouse_functions
14 clickhouse_parsers
15 clickhouse_storages_system
16 clickhouse_table_functions
17 string_utils
18
19 PUBLIC
20 daemon
21)
22
23clickhouse_program_add(server)
24
25if (GLIBC_COMPATIBILITY)
26 set (GLIBC_MAX_REQUIRED 2.4 CACHE INTERNAL "")
27 # temporary disabled. to enable - change 'exit 0' to 'exit $a'
28 add_test(NAME GLIBC_required_version COMMAND bash -c "readelf -s ${CMAKE_CURRENT_BINARY_DIR}/../clickhouse-server | perl -nE 'END {exit 0 if $a} ++$a, print if /\\x40GLIBC_(\\S+)/ and pack(q{C*}, split /\\./, \$1) gt pack q{C*}, split /\\./, q{${GLIBC_MAX_REQUIRED}}'")
29
30 #add_test(NAME GLIBC_required_version COMMAND bash -c "readelf -s ${CMAKE_CURRENT_BINARY_DIR}/../clickhouse-server | grep '@GLIBC' | grep -oP 'GLIBC_[\\d\\.]+' | sort | uniq | sort --version-sort --reverse | perl -lnE 'warn($_), exit 1 if $_ gt q{GLIBC_${GLIBC_MAX_REQUIRED}}'") # old
31endif ()
32
33install(FILES config.xml users.xml DESTINATION ${CLICKHOUSE_ETC_DIR}/clickhouse-server COMPONENT clickhouse)