Skip to content

Commit

Permalink
add a flag to enable gssapi
Browse files Browse the repository at this point in the history
  • Loading branch information
olegrok committed May 24, 2024
1 parent e029de2 commit be96c20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ find_package(Tarantool REQUIRED)

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

Expand Down Expand Up @@ -47,6 +48,10 @@ if (APPLE)
set(LIBRDKAFKA_C_FLAGS "${LIBRDKAFKA_C_FLAGS} ${CMAKE_C_SYSROOT_FLAG} ${CMAKE_OSX_SYSROOT}")
endif()

if (WITH_GSSAPI)
set(LIBRDKAFKA_FLAGS ${LIBRDKAFKA_FLAGS} --enable-gssapi)
endif()

if(STATIC_BUILD)
include(ExternalProject)
set(PATCHES_DIR "${CMAKE_SOURCE_DIR}/patches")
Expand Down
3 changes: 2 additions & 1 deletion kafka-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ build = {
STATIC_BUILD="$(STATIC_BUILD)",
ENABLE_ASAN="$(ENABLE_ASAN)",
ENABLE_UBSAN="$(ENABLE_UBSAN)",
WITH_OPENSSL_1_1="$(WITH_OPENSSL_1_1)"
WITH_OPENSSL_1_1="$(WITH_OPENSSL_1_1)",
WITH_GSSAPI="$(WITH_GSSAPI)",
}
}

0 comments on commit be96c20

Please sign in to comment.