mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Install only "programs" directory during build
This commit is contained in:
parent
6a968bad8e
commit
08ffb8f93d
@ -98,7 +98,7 @@ ccache_status
|
|||||||
if [ -n "$MAKE_DEB" ]; then
|
if [ -n "$MAKE_DEB" ]; then
|
||||||
# No quotes because I want it to expand to nothing if empty.
|
# No quotes because I want it to expand to nothing if empty.
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
DESTDIR=/build/packages/root ninja $NINJA_FLAGS install
|
DESTDIR=/build/packages/root ninja $NINJA_FLAGS programs/install
|
||||||
cp /build/programs/clickhouse-diagnostics /build/packages/root/usr/bin
|
cp /build/programs/clickhouse-diagnostics /build/packages/root/usr/bin
|
||||||
cp /build/programs/clickhouse-diagnostics /output
|
cp /build/programs/clickhouse-diagnostics /output
|
||||||
bash -x /build/packages/build
|
bash -x /build/packages/build
|
||||||
|
@ -59,6 +59,8 @@ option (ENABLE_CLICKHOUSE_SU "A tool similar to 'su'" ${ENABLE_CLICKHOUSE_ALL})
|
|||||||
|
|
||||||
option (ENABLE_CLICKHOUSE_DISKS "A tool to manage disks" ${ENABLE_CLICKHOUSE_ALL})
|
option (ENABLE_CLICKHOUSE_DISKS "A tool to manage disks" ${ENABLE_CLICKHOUSE_ALL})
|
||||||
|
|
||||||
|
option (ENABLE_CLICKHOUSE_REPORT "A tiny tool to collect a clickhouse-server state" ${ENABLE_CLICKHOUSE_ALL})
|
||||||
|
|
||||||
if (NOT ENABLE_NURAFT)
|
if (NOT ENABLE_NURAFT)
|
||||||
# RECONFIGURE_MESSAGE_LEVEL should not be used here,
|
# RECONFIGURE_MESSAGE_LEVEL should not be used here,
|
||||||
# since ENABLE_NURAFT is set to OFF for FreeBSD and Darwin.
|
# since ENABLE_NURAFT is set to OFF for FreeBSD and Darwin.
|
||||||
@ -370,6 +372,9 @@ if (ENABLE_CLICKHOUSE_SU)
|
|||||||
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/clickhouse-su" DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/clickhouse-su" DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
||||||
list(APPEND CLICKHOUSE_BUNDLE clickhouse-su)
|
list(APPEND CLICKHOUSE_BUNDLE clickhouse-su)
|
||||||
endif ()
|
endif ()
|
||||||
|
if (ENABLE_CLICKHOUSE_REPORT)
|
||||||
|
include(${ClickHouse_SOURCE_DIR}/utils/report/CMakeLists.txt)
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (ENABLE_CLICKHOUSE_KEEPER)
|
if (ENABLE_CLICKHOUSE_KEEPER)
|
||||||
if (NOT BUILD_STANDALONE_KEEPER AND CREATE_KEEPER_SYMLINK)
|
if (NOT BUILD_STANDALONE_KEEPER AND CREATE_KEEPER_SYMLINK)
|
||||||
|
@ -1 +1 @@
|
|||||||
install (PROGRAMS clickhouse-report DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
install (PROGRAMS "${CMAKE_CURRENT_LIST_DIR}/clickhouse-report" DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT clickhouse)
|
||||||
|
Loading…
Reference in New Issue
Block a user