From 9a0f196d34be3e71440ac382b91c3414d11a3a3b Mon Sep 17 00:00:00 2001 From: ych Date: Fri, 5 Jul 2019 17:48:02 +0800 Subject: [PATCH 1/2] Remove boost dependency from pkg-config template file Boost not provide pkg-config file, so if execute 'pkg-config --exist cppkafka' command with boost dependency, user always gets non-zero return. And PKG_SEARCH_MODULE in cmake use the command to check the status of cppkafka. The boost dependency should be removed for general usage can be works. --- cmake/cppkafka.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cppkafka.pc.in b/cmake/cppkafka.pc.in index 0ba0ac4..177260c 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, boost +Requires.private: rdkafka >= 0.9.4 Libs: -L${libdir} -L${sharedlibdir} -lcppkafka Cflags: -I${includedir} -I${includedir}/cppkafka From de06b7ad4ea8511b3823801daa78b7d685915059 Mon Sep 17 00:00:00 2001 From: ych Date: Wed, 10 Jul 2019 17:13:52 +0800 Subject: [PATCH 2/2] Add boost include dir to pkg-config template file --- cmake/cppkafka.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cppkafka.pc.in b/cmake/cppkafka.pc.in index 177260c..b5d432c 100644 --- a/cmake/cppkafka.pc.in +++ b/cmake/cppkafka.pc.in @@ -11,4 +11,4 @@ Version: @CPPKAFKA_VERSION@ Requires: Requires.private: rdkafka >= 0.9.4 Libs: -L${libdir} -L${sharedlibdir} -lcppkafka -Cflags: -I${includedir} -I${includedir}/cppkafka +Cflags: -I${includedir} -I${includedir}/cppkafka -I@Boost_INCLUDE_DIRS@