mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 10:04:06 +00:00
21 lines
938 B
CMake
21 lines
938 B
CMake
option (USE_INTERNAL_LIBGSASL_LIBRARY "Set to FALSE to use system libgsasl library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if (USE_INTERNAL_LIBGSASL_LIBRARY AND NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/libgsasl/src/gsasl.h")
|
|
message (WARNING "submodule contrib/libgsasl is missing. to fix try run: \n git submodule update --init --recursive")
|
|
set (USE_INTERNAL_LIBGSASL_LIBRARY 0)
|
|
endif ()
|
|
|
|
if (NOT USE_INTERNAL_LIBGSASL_LIBRARY)
|
|
find_library (LIBGSASL_LIBRARY gsasl)
|
|
find_path (LIBGSASL_INCLUDE_DIR NAMES gsasl.h PATHS ${LIBGSASL_INCLUDE_PATHS})
|
|
endif ()
|
|
|
|
if (LIBGSASL_LIBRARY AND LIBGSASL_INCLUDE_DIR)
|
|
else ()
|
|
set (LIBGSASL_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libgsasl/src ${ClickHouse_SOURCE_DIR}/contrib/libgsasl/linux_x86_64/include)
|
|
set (USE_INTERNAL_LIBGSASL_LIBRARY 1)
|
|
set (LIBGSASL_LIBRARY libgsasl)
|
|
endif ()
|
|
|
|
message (STATUS "Using libgsasl: ${LIBGSASL_INCLUDE_DIR} : ${LIBGSASL_LIBRARY}")
|