Skip to content

Commit be96c20

Browse files
committed
add a flag to enable gssapi
1 parent e029de2 commit be96c20

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ find_package(Tarantool REQUIRED)
1414

1515
set(STATIC_BUILD "OFF" CACHE BOOL "Link dependencies statically?")
1616
set(WITH_OPENSSL_1_1 "OFF" CACHE BOOL "Require openssl version >= 1.1?")
17+
set(WITH_GSSAPI "OFF" CACHE BOOL "Enable Kerberos (GSSAPI) support")
1718
set(ENABLE_ASAN "OFF" CACHE BOOL "Enable ASAN")
1819
set(ENABLE_UBSAN "OFF" CACHE BOOL "Enable UBSAN")
1920

@@ -47,6 +48,10 @@ if (APPLE)
4748
set(LIBRDKAFKA_C_FLAGS "${LIBRDKAFKA_C_FLAGS} ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}")
4849
endif()
4950

51+
if (WITH_GSSAPI)
52+
set(LIBRDKAFKA_FLAGS ${LIBRDKAFKA_FLAGS} --enable-gssapi)
53+
endif()
54+
5055
if(STATIC_BUILD)
5156
include(ExternalProject)
5257
set(PATCHES_DIR "${CMAKE_SOURCE_DIR}/patches")

kafka-scm-1.rockspec

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ build = {
2727
STATIC_BUILD="$(STATIC_BUILD)",
2828
ENABLE_ASAN="$(ENABLE_ASAN)",
2929
ENABLE_UBSAN="$(ENABLE_UBSAN)",
30-
WITH_OPENSSL_1_1="$(WITH_OPENSSL_1_1)"
30+
WITH_OPENSSL_1_1="$(WITH_OPENSSL_1_1)",
31+
WITH_GSSAPI="$(WITH_GSSAPI)",
3132
}
3233
}

0 commit comments

Comments
 (0)