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 ..
62
62
make
63
63
```
64
64
65
+ ## CMake options
66
+
65
67
If you have installed _ librdkafka_ on a non standard directory, you can use the
66
68
` RDKAFKA_ROOT_DIR ` cmake parameter when configuring the project:
67
69
@@ -73,6 +75,15 @@ Note that finding _librdkafka_ will succeed iff there's an _include_ and _lib_
73
75
directories inside the specified path, including both the _ rdkafka.h_ header
74
76
and the _ librdkafka_ library file.
75
77
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
+
76
87
# Using
77
88
78
89
If 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