diff --git a/CMakeLists.txt b/CMakeLists.txt index bf3e85d2..7a532527 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,8 @@ endif() if (CPPKAFKA_RDKAFKA_STATIC_LIB) add_definitions("-DLIBRDKAFKA_STATICLIB") +else () + set(RDKAFKA_REQUIRES "rdkafka >= 0.9.4") endif() if (NOT CPPKAFKA_CONFIG_DIR) diff --git a/cmake/cppkafka.pc.in b/cmake/cppkafka.pc.in index b5d432c2..5dc8af27 100644 --- a/cmake/cppkafka.pc.in +++ b/cmake/cppkafka.pc.in @@ -9,6 +9,6 @@ Url: https://github.com/mfontanini/cppkafka Description: C++ wrapper library on top of RdKafka Version: @CPPKAFKA_VERSION@ Requires: -Requires.private: rdkafka >= 0.9.4 +Requires.private: @RDKAFKA_REQUIRES@ Libs: -L${libdir} -L${sharedlibdir} -lcppkafka Cflags: -I${includedir} -I${includedir}/cppkafka -I@Boost_INCLUDE_DIRS@