ClickHouse/utils/keeper-bench/CMakeLists.txt
Azat Khuzhin d761e24514 Do not build keeper-bench if rapidjson was disabled
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-03 09:49:47 +02:00

8 lines
352 B
CMake

if (NOT TARGET ch_contrib::rapidjson)
message (${RECONFIGURE_MESSAGE_LEVEL} "Not building keeper-bench due to rapidjson is disabled")
return()
endif()
clickhouse_add_executable(keeper-bench Generator.cpp Runner.cpp Stats.cpp main.cpp)
target_link_libraries(keeper-bench PRIVATE clickhouse_common_config_no_zookeeper_log ch_contrib::rapidjson)