Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade find librdkafka.cmake #180

Open
sknop opened this issue Mar 27, 2019 · 1 comment
Open

Upgrade find librdkafka.cmake #180

sknop opened this issue Mar 27, 2019 · 1 comment

Comments

@sknop
Copy link

sknop commented Mar 27, 2019

Hi,

I had problems compiling your C++ wrapper because it could not find librdkafka. I found this new cmake extension that allowed me to find and compile the library: https://gist.github.com/matthew-d-jones/550ee6fa2f89610f88991513fa5d6cfc

(after adjusting the find:

-find_package(RdKafka REQUIRED ${FIND_PACKAGE_QUIET})
+find_package(LibRDKafka REQUIRED ${FIND_PACKAGE_QUIET})

)

Might be worth a look?

@accelerated
Copy link
Contributor

The current FindRdKafka.cmake should work fine. It searches here to find all possible variations of the file such as librdkafka.so, librdkafka.a, rdkafka.a etc...
Note that your rdkafka library should be installed in the default place otherwise you should issue:
cmake -DRDKAFKA_ROOT_DIR=/some/other/dir ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants