build utils/self-extracting-executable/compressor whenever we want to build compressed binary

This commit is contained in:
Yakov Olkhovskiy 2022-07-06 20:40:41 -04:00
parent a26643a7a6
commit c6db15458a
2 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ option (ENABLE_CLICKHOUSE_SERVER "Server mode (main mode)" ${ENABLE_CLICKHOUSE_A
option (ENABLE_CLICKHOUSE_CLIENT "Client mode (interactive tui/shell that connects to the server)"
${ENABLE_CLICKHOUSE_ALL})
if (CLICKHOUSE_SPLIT_BINARY OR NOT ENABLE_UTILS)
if (CLICKHOUSE_SPLIT_BINARY)
option (ENABLE_CLICKHOUSE_SELF_EXTRACTING "Self-extracting executable" OFF)
else ()
option (ENABLE_CLICKHOUSE_SELF_EXTRACTING "Self-extracting executable" ON)

View File

@ -9,6 +9,10 @@ else()
endif()
include(../cmake/limit_jobs.cmake)
if (ENABLE_CLICKHOUSE_SELF_EXTRACTING)
add_subdirectory (self-extracting-executable)
endif ()
# Utils used in package
add_subdirectory (config-processor)
add_subdirectory (report)
@ -32,7 +36,6 @@ if (NOT DEFINED ENABLE_UTILS OR ENABLE_UTILS)
add_subdirectory (check-mysql-binlog)
add_subdirectory (keeper-bench)
add_subdirectory (graphite-rollup)
add_subdirectory (self-extracting-executable)
if (TARGET ch_contrib::nuraft)
add_subdirectory (keeper-data-dumper)