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

Use CMAKE_STATIC_LIBRARY_* macros for FindRdKafka #156

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

psigen
Copy link
Contributor

@psigen psigen commented Jan 12, 2019

In the current implementation, library suffixes are hard coded from a hand-maintained list. Instead of writing this list, we can use the CMake macros for platform specific library prefix/suffixes.

E.g. https://cmake.org/cmake/help/v3.0/variable/CMAKE_STATIC_LIBRARY_SUFFIX.html

This also resolves library resolution on Mac OSX, which does not currently work on the native .dylib suffix for shared libraries.

In the current implementation, library suffixes are hard coded from a hand-maintained list.  Instead of writing this list, we can use the CMake macros for platform specific library prefix/suffixes.

E.g. https://cmake.org/cmake/help/v3.0/variable/CMAKE_STATIC_LIBRARY_SUFFIX.html

This also resolves library resolution on Mac OSX, which does not currently work on the native `.dylib`  suffix for shared libraries.
Copy link
Contributor

@accelerated accelerated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this breaks previous PR

@psigen
Copy link
Contributor Author

psigen commented Jan 13, 2019 via email

@mfontanini
Copy link
Owner

Nice, I didn't know those existed. I don't think this should break anything, it should be equivalent while also working in cases like OSX. Thanks!

@mfontanini mfontanini merged commit 2c6a47d into mfontanini:master Jan 14, 2019
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.

3 participants