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

Prefer CMake Config when looking for Flann #2147

Merged
merged 1 commit into from Feb 2, 2023
Merged

Prefer CMake Config when looking for Flann #2147

merged 1 commit into from Feb 2, 2023

Conversation

StefanBruens
Copy link
Contributor

Latest flann may link to e.g. liblz4, and the FindFlann module does not handle transitive lib dependencies.

In case external flann is required try the upstream CMake Config first, and fall back to the legacy lookup.

Fixes #1265.

Latest flann may link to e.g. liblz4, and the FindFlann module does not
handle transitive lib dependencies.

In case external flann is required try the upstream CMake Config first,
and fall back to the legacy lookup.

Fixes #1265.
@pmoulon
Copy link
Member

pmoulon commented Jan 20, 2023

Thank you for your PR @StefanBruens.
I kick off the CI, so we will see if everything is looking good on compilation and unit test (but not sure I installed FLANN in https://github.com/openMVG/openMVG/blob/develop/.github/workflows/compile_and_run_test_external_deps.yml)
Nit: We are using FLANN in header only mode

@pmoulon pmoulon self-assigned this Feb 2, 2023
@pmoulon pmoulon merged commit 0e35f8d into openMVG:develop Feb 2, 2023
@pmoulon
Copy link
Member

pmoulon commented Feb 2, 2023

@StefanBruens Thx you for your contribution. Merged!

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

Successfully merging this pull request may close these issues.

FindFlann.cmake missing linker flag -llz4.
2 participants