From 4563e796887121bf6ef6d9f64a3e973cb67becac Mon Sep 17 00:00:00 2001 From: Pablo Marcos Date: Tue, 19 Nov 2024 17:18:41 +0000 Subject: [PATCH] Enable jwt-cpp only for ClickHouse Cloud --- contrib/jwt-cpp-cmake/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/jwt-cpp-cmake/CMakeLists.txt b/contrib/jwt-cpp-cmake/CMakeLists.txt index 05400f1a954..4cb8716bc68 100644 --- a/contrib/jwt-cpp-cmake/CMakeLists.txt +++ b/contrib/jwt-cpp-cmake/CMakeLists.txt @@ -1,4 +1,9 @@ -option (ENABLE_JWT_CPP "Enable jwt-cpp library" ${ENABLE_LIBRARIES}) +set(ENABLE_JWT_CPP_DEFAULT OFF) +if(ENABLE_LIBRARIES AND CLICKHOUSE_CLOUD) + set(ENABLE_JWT_CPP_DEFAULT ON) +endif() + +option(ENABLE_JWT_CPP "Enable jwt-cpp library" ${ENABLE_JWT_CPP_DEFAULT}) if (NOT ENABLE_JWT_CPP) message(STATUS "Not using jwt-cpp")