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

Specific linking option for rdkafka library #94

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

accelerated
Copy link
Contributor

Gives an option at build time to statically or dynamically link the rdkafka library. The issue is that if both .a and .so files are present in the same directory (or .lib and .dll for windows), cmake seems to prefer the shared library by default. The only way to control this is to force find_path to look for more specific names first and then the more generic names (without a suffix) afterward.
If .a .so .lib and .dll files are not there, the default cmake search pattern will be used.

@accelerated accelerated force-pushed the rdkafka_static_linking branch from 5438ff4 to b20eada Compare June 23, 2018 14:05
@accelerated accelerated force-pushed the rdkafka_static_linking branch from b20eada to 19d750a Compare June 23, 2018 14:18
@accelerated
Copy link
Contributor Author

@mfontanini Hi, would it be possible to review the PRs I submitted? They're quite straightforward. The main ones are this one and the pause/resume. The others can wait but ideally if you can wrap them up it would be nice. Thanks!

@mfontanini
Copy link
Owner

Looks good!

@mfontanini mfontanini merged commit 069ea3d into mfontanini:master Jun 25, 2018
@accelerated accelerated deleted the rdkafka_static_linking branch June 25, 2018 16:17
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

Successfully merging this pull request may close these issues.

2 participants