Skip to content

Commit 67022db

Browse files
authored
Add notes about static building on README.md
1 parent d458e4d commit 67022db

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ cmake ..
6262
make
6363
```
6464

65+
## CMake options
66+
6567
If 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_
7375
directories inside the specified path, including both the _rdkafka.h_ header
7476
and 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

7889
If you want to use _cppkafka_, you'll need to link your application with:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy