mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
contrib/krb5: use hidden library
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
eba636613a
commit
0b3f1b9db5
@ -558,10 +558,10 @@ add_custom_target(
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
add_library(krb5)
|
||||
add_library(_krb5)
|
||||
|
||||
add_dependencies(
|
||||
krb5
|
||||
_krb5
|
||||
ERRMAP_H
|
||||
ERROR_MAP_H
|
||||
KRB_5_H
|
||||
@ -579,7 +579,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
list(APPEND ALL_SRCS "${CMAKE_CURRENT_BINARY_DIR}/include_private/kcmrpc.c")
|
||||
endif()
|
||||
|
||||
target_sources(krb5 PRIVATE
|
||||
target_sources(_krb5 PRIVATE
|
||||
${ALL_SRCS}
|
||||
)
|
||||
|
||||
@ -651,12 +651,12 @@ add_custom_command(
|
||||
|
||||
|
||||
|
||||
target_include_directories(krb5 SYSTEM BEFORE PUBLIC
|
||||
target_include_directories(_krb5 SYSTEM BEFORE PUBLIC
|
||||
"${KRB5_SOURCE_DIR}/include"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/include"
|
||||
)
|
||||
|
||||
target_include_directories(krb5 PRIVATE
|
||||
target_include_directories(_krb5 PRIVATE
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/include_private" # For autoconf.h and other generated headers.
|
||||
${KRB5_SOURCE_DIR}
|
||||
"${KRB5_SOURCE_DIR}/include"
|
||||
@ -678,7 +678,7 @@ target_include_directories(krb5 PRIVATE
|
||||
"${KRB5_SOURCE_DIR}/lib/krb5/os"
|
||||
)
|
||||
|
||||
target_compile_definitions(krb5 PRIVATE
|
||||
target_compile_definitions(_krb5 PRIVATE
|
||||
KRB5_PRIVATE
|
||||
_GSS_STATIC_LINK=1
|
||||
KRB5_DEPRECATED=1
|
||||
@ -688,6 +688,6 @@ target_compile_definitions(krb5 PRIVATE
|
||||
LIBDIR="/usr/local/lib"
|
||||
)
|
||||
|
||||
target_link_libraries(krb5 PRIVATE OpenSSL::Crypto OpenSSL::SSL)
|
||||
target_link_libraries(_krb5 PRIVATE OpenSSL::Crypto OpenSSL::SSL)
|
||||
|
||||
add_library(ch_contrib::krb5 ALIAS krb5)
|
||||
add_library(ch_contrib::krb5 ALIAS _krb5)
|
||||
|
Loading…
Reference in New Issue
Block a user