From b4311cf3c9c3f720f6844c9c93cdfcf15f161dd7 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 21 Jan 2022 22:08:42 +0300 Subject: [PATCH] Fix cmake for mac. --- src/Common/examples/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Common/examples/CMakeLists.txt b/src/Common/examples/CMakeLists.txt index 14b5a6e60eb..3fb52e5cf2d 100644 --- a/src/Common/examples/CMakeLists.txt +++ b/src/Common/examples/CMakeLists.txt @@ -78,8 +78,10 @@ target_link_libraries (shell_command_inout PRIVATE clickhouse_common_io) add_executable (executable_udf executable_udf.cpp) target_link_libraries (executable_udf PRIVATE dbms) -add_executable (hive_metastore_client hive_metastore_client.cpp) -target_link_libraries (hive_metastore_client PUBLIC ch_contrib::hivemetastore ch_contrib::thrift) +if (ENABLE_HIVE) + add_executable (hive_metastore_client hive_metastore_client.cpp) + target_link_libraries (hive_metastore_client PUBLIC ch_contrib::hivemetastore ch_contrib::thrift) +endif() add_executable (interval_tree interval_tree.cpp) target_link_libraries (interval_tree PRIVATE dbms)