Skip to content

Commit ba54a92

Browse files
author
Nikita Vakula
committed
Do not require rdkafka if it is static lib
1 parent 76d175e commit ba54a92

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ endif()
9292

9393
if (CPPKAFKA_RDKAFKA_STATIC_LIB)
9494
add_definitions("-DLIBRDKAFKA_STATICLIB")
95+
else ()
96+
set(RDKAFKA_REQUIRES "rdkafka >= 0.9.4")
9597
endif()
9698

9799
if (NOT CPPKAFKA_CONFIG_DIR)

cmake/cppkafka.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Url: https://github.com/mfontanini/cppkafka
99
Description: C++ wrapper library on top of RdKafka
1010
Version: @CPPKAFKA_VERSION@
1111
Requires:
12-
Requires.private: rdkafka >= 0.9.4
12+
Requires.private: @RDKAFKA_REQUIRES@
1313
Libs: -L${libdir} -L${sharedlibdir} -lcppkafka
1414
Cflags: -I${includedir} -I${includedir}/cppkafka -I@Boost_INCLUDE_DIRS@

0 commit comments

Comments
 (0)