diff --git a/src/Processors/examples/CMakeLists.txt b/src/Processors/examples/CMakeLists.txt index 72c3a16d32f..5d43a0d7d08 100644 --- a/src/Processors/examples/CMakeLists.txt +++ b/src/Processors/examples/CMakeLists.txt @@ -1,2 +1,4 @@ -clickhouse_add_executable (comma_separated_streams comma_separated_streams.cpp) -target_link_libraries (comma_separated_streams PRIVATE dbms) +if (TARGET ch_contrib::hivemetastore) + clickhouse_add_executable (comma_separated_streams comma_separated_streams.cpp) + target_link_libraries (comma_separated_streams PRIVATE dbms) +endif()