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

find_package(lz4 CONFIG) #507

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

felixf4xu
Copy link

this PR is another try to fix #435, #417, and #403

Different from #400 , this PR tries to find_package lz4 first, if found, include and link lz4, otherwise it falls back to PkgConfig. This is a more cmake friendly change, in my point of view.

This PR is based on the fact that, if lz4 is built and installed from source using cmake, it already has support of cmake, see code https://github.com/lz4/lz4/tree/dev/build/cmake. This PR does not add too much additional cmake script but use upstream of lz4's cmake support.

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.

FLANN : Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) for Windows
2 participants