mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
24 lines
735 B
CMake
24 lines
735 B
CMake
if (${ENABLE_LIBRARIES} AND ${ENABLE_KRB5})
|
|
set (DEFAULT_ENABLE_CYRUS_SASL 1)
|
|
else()
|
|
set (DEFAULT_ENABLE_CYRUS_SASL 0)
|
|
endif()
|
|
|
|
OPTION(ENABLE_CYRUS_SASL "Enable cyrus-sasl" ${DEFAULT_ENABLE_CYRUS_SASL})
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/cyrus-sasl/README")
|
|
message (WARNING "submodule contrib/cyrus-sasl is missing. to fix try run: \n git submodule update --init --recursive")
|
|
set (ENABLE_CYRUS_SASL 0)
|
|
endif ()
|
|
|
|
if (ENABLE_CYRUS_SASL)
|
|
|
|
set (USE_CYRUS_SASL 1)
|
|
set (CYRUS_SASL_LIBRARY sasl2)
|
|
|
|
set (CYRUS_SASL_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/cyrus-sasl/include")
|
|
|
|
|
|
endif ()
|
|
|
|
message (STATUS "Using cyrus-sasl: krb5=${USE_KRB5}: ${CYRUS_SASL_INCLUDE_DIR} : ${CYRUS_SASL_LIBRARY}")
|