From 788863898ddb906096a409c91f5560c9809ca08b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 4 Nov 2023 17:10:58 +0100 Subject: [PATCH] Add an option to disable libssh --- contrib/libssh-cmake/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/libssh-cmake/CMakeLists.txt b/contrib/libssh-cmake/CMakeLists.txt index 58db81cf352..1e58a856119 100644 --- a/contrib/libssh-cmake/CMakeLists.txt +++ b/contrib/libssh-cmake/CMakeLists.txt @@ -1,3 +1,10 @@ +option (ENABLE_SSH "Enable support for SSH keys and protocol" ON) + +if (NOT ENABLE_SSH) + message(STATUS "Not using SSH") + return() +endif() + set(LIB_SOURCE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libssh") set(LIB_BINARY_DIR "${ClickHouse_BINARY_DIR}/contrib/libssh") # Specify search path for CMake modules to be loaded by include()