contrib/libgsasl: add hidden library

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-01-20 17:21:23 +03:00
parent 03fc3895bd
commit dd9be82c29

View File

@ -98,19 +98,19 @@ if (TARGET ch_contrib::krb5)
${SRC_DIR}/gssapi/server.c)
endif()
add_library(gsasl ${SRCS})
add_library(_gsasl ${SRCS})
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 PUBLIC "${ClickHouse_SOURCE_DIR}/contrib/libgsasl-cmake/linux_x86_64/include")
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 PUBLIC "${ClickHouse_SOURCE_DIR}/contrib/libgsasl-cmake/linux_x86_64/include")
target_compile_definitions (gsasl PRIVATE HAVE_CONFIG_H=1)
target_compile_definitions(_gsasl PRIVATE HAVE_CONFIG_H=1)
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)
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)
add_library(ch_contrib::gsasl ALIAS _gsasl)