From 67022dbb686d0ca7f2b20ed73054d53e6dbe2d2f Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Mon, 5 Jun 2017 19:41:46 -0700 Subject: [PATCH] Add notes about static building on README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 72ac249..2e3e21d 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,8 @@ cmake .. make ``` +## CMake options + If you have installed _librdkafka_ on a non standard directory, you can use the `RDKAFKA_ROOT_DIR` cmake parameter when configuring the project: @@ -73,6 +75,15 @@ Note that finding _librdkafka_ will succeed iff there's an _include_ and _lib_ directories inside the specified path, including both the _rdkafka.h_ header and the _librdkafka_ library file. +--- + +By default, a shared library will be built. If you want to perform a static build, +use the _CPPKAFKA_BUILD_SHARED_ parameter: + +```Shell +cmake .. -DCPPKAFKA_BUILD_SHARED=0 +``` + # Using If you want to use _cppkafka_, you'll need to link your application with: