File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ cmake ..
6262make
6363```
6464
65+ ## CMake options
66+
6567If you have installed _ librdkafka_ on a non standard directory, you can use the
6668` RDKAFKA_ROOT_DIR ` cmake parameter when configuring the project:
6769
@@ -73,6 +75,15 @@ Note that finding _librdkafka_ will succeed iff there's an _include_ and _lib_
7375directories inside the specified path, including both the _ rdkafka.h_ header
7476and the _ librdkafka_ library file.
7577
78+ ---
79+
80+ By default, a shared library will be built. If you want to perform a static build,
81+ use the _ CPPKAFKA_BUILD_SHARED_ parameter:
82+
83+ ``` Shell
84+ cmake .. -DCPPKAFKA_BUILD_SHARED=0
85+ ```
86+
7687# Using
7788
7889If you want to use _ cppkafka_ , you'll need to link your application with:
You can’t perform that action at this time.
0 commit comments