mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Compilation fix
Typo fix
This commit is contained in:
parent
bb68768ce1
commit
d9ca9cd9b2
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Sets values of:
|
# Sets values of:
|
||||||
# OPENLDAP_FOUND - TRUE if found
|
# OPENLDAP_FOUND - TRUE if found
|
||||||
# OPENLDAP_INCLUDE_DIR - path to the include directory
|
# OPENLDAP_INCLUDE_DIRS - list of paths to the include directories
|
||||||
# OPENLDAP_LIBRARIES - paths to the libldap and liblber libraries
|
# OPENLDAP_LIBRARIES - paths to the libldap and liblber libraries
|
||||||
# OPENLDAP_LDAP_LIBRARY - paths to the libldap library
|
# OPENLDAP_LDAP_LIBRARY - paths to the libldap library
|
||||||
# OPENLDAP_LBER_LIBRARY - paths to the liblber library
|
# OPENLDAP_LBER_LIBRARY - paths to the liblber library
|
||||||
@ -28,11 +28,11 @@ if(OPENLDAP_USE_REENTRANT_LIBS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENLDAP_ROOT_DIR)
|
if(OPENLDAP_ROOT_DIR)
|
||||||
find_path(OPENLDAP_INCLUDE_DIR NAMES "ldap.h" "lber.h" PATHS "${OPENLDAP_ROOT_DIR}" PATH_SUFFIXES "include" NO_DEFAULT_PATH)
|
find_path(OPENLDAP_INCLUDE_DIRS NAMES "ldap.h" "lber.h" PATHS "${OPENLDAP_ROOT_DIR}" PATH_SUFFIXES "include" NO_DEFAULT_PATH)
|
||||||
find_library(OPENLDAP_LDAP_LIBRARY NAMES "ldap${_r_suffix}" PATHS "${OPENLDAP_ROOT_DIR}" PATH_SUFFIXES "lib" NO_DEFAULT_PATH)
|
find_library(OPENLDAP_LDAP_LIBRARY NAMES "ldap${_r_suffix}" PATHS "${OPENLDAP_ROOT_DIR}" PATH_SUFFIXES "lib" NO_DEFAULT_PATH)
|
||||||
find_library(OPENLDAP_LBER_LIBRARY NAMES "lber" PATHS "${OPENLDAP_ROOT_DIR}" PATH_SUFFIXES "lib" NO_DEFAULT_PATH)
|
find_library(OPENLDAP_LBER_LIBRARY NAMES "lber" PATHS "${OPENLDAP_ROOT_DIR}" PATH_SUFFIXES "lib" NO_DEFAULT_PATH)
|
||||||
else()
|
else()
|
||||||
find_path(OPENLDAP_INCLUDE_DIR NAMES "ldap.h" "lber.h")
|
find_path(OPENLDAP_INCLUDE_DIRS NAMES "ldap.h" "lber.h")
|
||||||
find_library(OPENLDAP_LDAP_LIBRARY NAMES "ldap${_r_suffix}")
|
find_library(OPENLDAP_LDAP_LIBRARY NAMES "ldap${_r_suffix}")
|
||||||
find_library(OPENLDAP_LBER_LIBRARY NAMES "lber")
|
find_library(OPENLDAP_LBER_LIBRARY NAMES "lber")
|
||||||
endif()
|
endif()
|
||||||
@ -44,10 +44,10 @@ set(OPENLDAP_LIBRARIES ${OPENLDAP_LDAP_LIBRARY} ${OPENLDAP_LBER_LIBRARY})
|
|||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args(
|
find_package_handle_standard_args(
|
||||||
OpenLDAP DEFAULT_MSG
|
OpenLDAP DEFAULT_MSG
|
||||||
OPENLDAP_INCLUDE_DIR OPENLDAP_LDAP_LIBRARY OPENLDAP_LBER_LIBRARY
|
OPENLDAP_INCLUDE_DIRS OPENLDAP_LDAP_LIBRARY OPENLDAP_LBER_LIBRARY
|
||||||
)
|
)
|
||||||
|
|
||||||
mark_as_advanced(OPENLDAP_INCLUDE_DIR OPENLDAP_LIBRARIES OPENLDAP_LDAP_LIBRARY OPENLDAP_LBER_LIBRARY)
|
mark_as_advanced(OPENLDAP_INCLUDE_DIRS OPENLDAP_LIBRARIES OPENLDAP_LDAP_LIBRARY OPENLDAP_LBER_LIBRARY)
|
||||||
|
|
||||||
if(OPENLDAP_USE_STATIC_LIBS)
|
if(OPENLDAP_USE_STATIC_LIBS)
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_orig_CMAKE_FIND_LIBRARY_SUFFIXES})
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_orig_CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
@ -54,7 +54,10 @@ if (ENABLE_LDAP)
|
|||||||
else ()
|
else ()
|
||||||
set (USE_INTERNAL_LDAP_LIBRARY 1)
|
set (USE_INTERNAL_LDAP_LIBRARY 1)
|
||||||
set (OPENLDAP_ROOT_DIR "${ClickHouse_SOURCE_DIR}/contrib/openldap")
|
set (OPENLDAP_ROOT_DIR "${ClickHouse_SOURCE_DIR}/contrib/openldap")
|
||||||
set (OPENLDAP_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/openldap/include")
|
set (OPENLDAP_INCLUDE_DIRS
|
||||||
|
"${ClickHouse_SOURCE_DIR}/contrib/openldap-cmake/${_system_name}_${_system_processor}"
|
||||||
|
"${ClickHouse_SOURCE_DIR}/contrib/openldap/include"
|
||||||
|
)
|
||||||
# Below, 'ldap'/'ldap_r' and 'lber' will be resolved to
|
# Below, 'ldap'/'ldap_r' and 'lber' will be resolved to
|
||||||
# the targets defined in contrib/openldap-cmake/CMakeLists.txt
|
# the targets defined in contrib/openldap-cmake/CMakeLists.txt
|
||||||
if (OPENLDAP_USE_REENTRANT_LIBS)
|
if (OPENLDAP_USE_REENTRANT_LIBS)
|
||||||
@ -73,4 +76,4 @@ if (ENABLE_LDAP)
|
|||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
message (STATUS "Using ldap=${USE_LDAP}: ${OPENLDAP_INCLUDE_DIR} : ${OPENLDAP_LIBRARIES}")
|
message (STATUS "Using ldap=${USE_LDAP}: ${OPENLDAP_INCLUDE_DIRS} : ${OPENLDAP_LIBRARIES}")
|
||||||
|
@ -22,7 +22,7 @@ elseif (COMPILER_CLANG)
|
|||||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${APPLE_CLANG_MINIMUM_VERSION})
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${APPLE_CLANG_MINIMUM_VERSION})
|
||||||
message (FATAL_ERROR "AppleClang compiler version must be at least ${APPLE_CLANG_MINIMUM_VERSION} (Xcode ${XCODE_MINIMUM_VERSION}).")
|
message (FATAL_ERROR "AppleClang compiler version must be at least ${APPLE_CLANG_MINIMUM_VERSION} (Xcode ${XCODE_MINIMUM_VERSION}).")
|
||||||
elseif (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0.0)
|
elseif (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0.0)
|
||||||
# char8_t is available staring (upstream vanilla) Clang 7, but prior to Clang 8,
|
# char8_t is available starting (upstream vanilla) Clang 7, but prior to Clang 8,
|
||||||
# it is not enabled by -std=c++20 and can be enabled with an explicit -fchar8_t.
|
# it is not enabled by -std=c++20 and can be enabled with an explicit -fchar8_t.
|
||||||
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fchar8_t")
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fchar8_t")
|
||||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fchar8_t")
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fchar8_t")
|
||||||
|
2
contrib/CMakeLists.txt
vendored
2
contrib/CMakeLists.txt
vendored
@ -109,7 +109,7 @@ if (USE_INTERNAL_SSL_LIBRARY)
|
|||||||
add_library(OpenSSL::SSL ALIAS ${OPENSSL_SSL_LIBRARY})
|
add_library(OpenSSL::SSL ALIAS ${OPENSSL_SSL_LIBRARY})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (ENABLE_LDAP AND USE_INTERNAL_LDAP_LIBRARY)
|
if (USE_INTERNAL_LDAP_LIBRARY)
|
||||||
add_subdirectory (openldap-cmake)
|
add_subdirectory (openldap-cmake)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#include <Common/Exception.h>
|
#include <Common/Exception.h>
|
||||||
#include <ext/scope_guard.h>
|
#include <ext/scope_guard.h>
|
||||||
|
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
|
@ -325,7 +325,7 @@ if (OPENSSL_CRYPTO_LIBRARY)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (USE_LDAP)
|
if (USE_LDAP)
|
||||||
dbms_target_include_directories (SYSTEM BEFORE PRIVATE ${OPENLDAP_INCLUDE_DIR})
|
dbms_target_include_directories (SYSTEM BEFORE PRIVATE ${OPENLDAP_INCLUDE_DIRS})
|
||||||
dbms_target_link_libraries (PRIVATE ${OPENLDAP_LIBRARIES})
|
dbms_target_link_libraries (PRIVATE ${OPENLDAP_LIBRARIES})
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user