mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Remove unbundled gsasl support
This commit is contained in:
parent
bc2dbe10d6
commit
614f86edbb
@ -486,7 +486,6 @@ message (STATUS
|
||||
|
||||
include (GNUInstallDirs)
|
||||
|
||||
include (cmake/find/libgsasl.cmake)
|
||||
include (cmake/find/cyrus-sasl.cmake)
|
||||
include (cmake/find/llvm.cmake)
|
||||
include (cmake/find/libxml2.cmake)
|
||||
|
@ -1,40 +0,0 @@
|
||||
option(ENABLE_GSASL_LIBRARY "Enable gsasl library" ${ENABLE_LIBRARIES})
|
||||
|
||||
if (NOT ENABLE_GSASL_LIBRARY)
|
||||
if(USE_INTERNAL_LIBGSASL_LIBRARY)
|
||||
message (${RECONFIGURE_MESSAGE_LEVEL} "Cannot use internal libgsasl library with ENABLE_GSASL_LIBRARY=OFF")
|
||||
endif()
|
||||
return()
|
||||
endif()
|
||||
|
||||
option (USE_INTERNAL_LIBGSASL_LIBRARY "Set to FALSE to use system libgsasl library instead of bundled" ON)
|
||||
|
||||
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/libgsasl/src/gsasl.h")
|
||||
if (USE_INTERNAL_LIBGSASL_LIBRARY)
|
||||
message (WARNING "submodule contrib/libgsasl is missing. to fix try run: \n git submodule update --init")
|
||||
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't find internal libgsasl")
|
||||
set (USE_INTERNAL_LIBGSASL_LIBRARY 0)
|
||||
endif ()
|
||||
set (MISSING_INTERNAL_LIBGSASL_LIBRARY 1)
|
||||
endif ()
|
||||
|
||||
if (NOT USE_INTERNAL_LIBGSASL_LIBRARY)
|
||||
find_library (LIBGSASL_LIBRARY gsasl)
|
||||
find_path (LIBGSASL_INCLUDE_DIR NAMES gsasl.h PATHS ${LIBGSASL_INCLUDE_PATHS})
|
||||
if (NOT LIBGSASL_LIBRARY OR NOT LIBGSASL_INCLUDE_DIR)
|
||||
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't find system libgsasl")
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
if (LIBGSASL_LIBRARY AND LIBGSASL_INCLUDE_DIR)
|
||||
elseif (NOT MISSING_INTERNAL_LIBGSASL_LIBRARY)
|
||||
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 gsasl)
|
||||
endif ()
|
||||
|
||||
if(LIBGSASL_LIBRARY AND LIBGSASL_INCLUDE_DIR)
|
||||
set (USE_LIBGSASL 1)
|
||||
endif()
|
||||
|
||||
message (STATUS "Using libgsasl=${USE_LIBGSASL}: ${LIBGSASL_INCLUDE_DIR} : ${LIBGSASL_LIBRARY}")
|
4
contrib/CMakeLists.txt
vendored
4
contrib/CMakeLists.txt
vendored
@ -110,9 +110,7 @@ if (USE_EMBEDDED_COMPILER)
|
||||
add_llvm()
|
||||
endif ()
|
||||
|
||||
if (USE_INTERNAL_LIBGSASL_LIBRARY)
|
||||
add_subdirectory(libgsasl-cmake)
|
||||
endif()
|
||||
add_subdirectory(libgsasl-cmake)
|
||||
|
||||
if (USE_INTERNAL_LIBXML2_LIBRARY)
|
||||
add_subdirectory(libxml2-cmake)
|
||||
|
@ -1,3 +1,10 @@
|
||||
option(ENABLE_GSASL_LIBRARY "Enable gsasl library" ${ENABLE_LIBRARIES})
|
||||
|
||||
if (NOT ENABLE_GSASL_LIBRARY)
|
||||
message(STATUS "Not using gsasl library")
|
||||
return()
|
||||
endif()
|
||||
|
||||
set (SRC_DIR "${ClickHouse_SOURCE_DIR}/contrib/libgsasl")
|
||||
|
||||
set(SRCS
|
||||
@ -97,7 +104,7 @@ target_include_directories(gsasl PUBLIC ${SRC_DIR})
|
||||
target_include_directories(gsasl PUBLIC ${SRC_DIR}/gl)
|
||||
target_include_directories(gsasl PUBLIC ${SRC_DIR}/src)
|
||||
target_include_directories(gsasl PUBLIC ${SRC_DIR}/digest-md5)
|
||||
target_include_directories(gsasl PRIVATE "${ClickHouse_SOURCE_DIR}/contrib/libgsasl-cmake/linux_x86_64/include")
|
||||
target_include_directories(gsasl PUBLIC "${ClickHouse_SOURCE_DIR}/contrib/libgsasl-cmake/linux_x86_64/include")
|
||||
|
||||
target_compile_definitions (gsasl PRIVATE HAVE_CONFIG_H=1)
|
||||
|
||||
@ -105,3 +112,5 @@ if (TARGET ch_contrib::krb5)
|
||||
target_link_libraries(gsasl PUBLIC ch_contrib::krb5)
|
||||
target_compile_definitions (gsasl PRIVATE HAVE_GSSAPI_H=1 USE_GSSAPI=1)
|
||||
endif()
|
||||
|
||||
add_library(ch_contrib::gsasl ALIAS gsasl)
|
||||
|
@ -113,12 +113,11 @@ target_include_directories(_hdfs3 PRIVATE ${HDFS3_SOURCE_DIR})
|
||||
target_include_directories(_hdfs3 PRIVATE ${HDFS3_COMMON_DIR})
|
||||
target_include_directories(_hdfs3 PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
target_include_directories(_hdfs3 PRIVATE ${LIBGSASL_INCLUDE_DIR})
|
||||
target_include_directories(_hdfs3 PRIVATE ${LIBXML2_INCLUDE_DIR})
|
||||
|
||||
target_include_directories(_hdfs3 SYSTEM BEFORE INTERFACE "${ClickHouse_SOURCE_DIR}/contrib/libhdfs3/include")
|
||||
|
||||
target_link_libraries(_hdfs3 PRIVATE ${LIBGSASL_LIBRARY})
|
||||
target_link_libraries(_hdfs3 PRIVATE ch_contrib::gsasl)
|
||||
if (WITH_KERBEROS)
|
||||
target_link_libraries(_hdfs3 PRIVATE ch_contrib::krb5)
|
||||
endif()
|
||||
|
@ -30,7 +30,6 @@ const char * auto_config_build[]
|
||||
"USE_ICU", "@USE_ICU@",
|
||||
"USE_H3", "@USE_H3@",
|
||||
"USE_MYSQL", "@USE_MYSQL@",
|
||||
"USE_LIBGSASL", "@USE_LIBGSASL@",
|
||||
"USE_RDKAFKA", "@USE_RDKAFKA@",
|
||||
"USE_CAPNP", "@USE_CAPNP@",
|
||||
"USE_BASE64", "@USE_BASE64@",
|
||||
|
Loading…
Reference in New Issue
Block a user