Skip to content

Commit 69c230f

Browse files
flaviatovoftovo-axway
authored andcommitted
cmake: Completing CMakeLists to support OAUTHBEARER_OIDC
WITH_OAUTHBEARER_OIDC option was present in the append sources but was missing from the append compile definitions section of the CMakeLists. It was not possible to activate OAuth Authentication for Windows when using cmake with user-defined defines to build.
1 parent 48a7c7d commit 69c230f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ if(WITHOUT_WIN32_CONFIG)
166166
else()
167167
list(APPEND rdkafka_compile_definitions WITH_SASL_OAUTHBEARER=0)
168168
endif(WITH_SASL_OAUTHBEARER)
169+
if(WITH_OAUTHBEARER_OIDC)
170+
list(APPEND rdkafka_compile_definitions WITH_OAUTHBEARER_OIDC=1)
171+
else()
172+
list(APPEND rdkafka_compile_definitions WITH_OAUTHBEARER_OIDC=0)
173+
endif(WITH_OAUTHBEARER_OIDC)
169174
if(ENABLE_DEVEL)
170175
list(APPEND rdkafka_compile_definitions ENABLE_DEVEL=1)
171176
else()

0 commit comments

Comments
 (0)