Introduce clickhouse_common_config_no_zookeeper_log

Otherwise incorrect zookeeper (w/o log) will be used in clickhouse
server itself.
This commit is contained in:
Azat Khuzhin 2022-01-12 07:17:56 +03:00
parent 4a2bc64989
commit 003cdbcf60
2 changed files with 13 additions and 6 deletions

View File

@ -8,8 +8,17 @@ set (SRCS
) )
add_library(clickhouse_common_config ${SRCS}) add_library(clickhouse_common_config ${SRCS})
target_link_libraries(clickhouse_common_config target_link_libraries(clickhouse_common_config
PUBLIC
clickhouse_common_zookeeper
common
Poco::XML
PRIVATE
string_utils
)
add_library(clickhouse_common_config_no_zookeeper_log ${SRCS})
target_link_libraries(clickhouse_common_config_no_zookeeper_log
PUBLIC PUBLIC
clickhouse_common_zookeeper_no_log clickhouse_common_zookeeper_no_log
common common
@ -19,8 +28,6 @@ target_link_libraries(clickhouse_common_config
) )
if (USE_YAML_CPP) if (USE_YAML_CPP)
target_link_libraries(clickhouse_common_config target_link_libraries(clickhouse_common_config PRIVATE yaml-cpp)
PRIVATE target_link_libraries(clickhouse_common_config_no_zookeeper_log PRIVATE yaml-cpp)
yaml-cpp
)
endif() endif()

View File

@ -1,2 +1,2 @@
add_executable (config-processor config-processor.cpp) add_executable (config-processor config-processor.cpp)
target_link_libraries(config-processor PRIVATE clickhouse_common_config) target_link_libraries(config-processor PRIVATE clickhouse_common_config_no_zookeeper_log)