Enable jwt-cpp only for ClickHouse Cloud

This commit is contained in:
Pablo Marcos 2024-11-19 17:18:41 +00:00
parent d35e230ef6
commit 4563e79688

View File

@ -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")