Skip to content

Commit a7c696c

Browse files
authored
Merge pull request #301 from krjakbrjak/Fix-pkg-config
Do not require rdkafka if it is static lib
2 parents 76d175e + ba54a92 commit a7c696c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: CMakeLists.txt

+2
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)

Diff for: cmake/cppkafka.pc.in

+1-1
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)