-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Implement imported target for FLANN #2861
Implement imported target for FLANN #2861
Conversation
2f8ac36
to
bfa6a9a
Compare
Not sure if we really need |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
I'm curious to see if this will fix also #2802. I believe it will because we're using find_library
regardless of the success of pkg-config and that will ensure that a full path to the library is passed on to the consuming targets. Ping @claudiofantacci to monitor this one.
I don't see an explicit use in our source files. But I have the impression this might be needed by FLANN and its dependencies. Actually that's the feeling that it comes out from this PR @jspricke submitted, specifically the addition of the LZ4_STATIC_FLAGS. |
Yes, I think it does. By a quicklook at the PR, it creates a FLANN target with all the required info, just as the CMake file I was suggesting to use to address the problem (StandardFindModule.cmake from YCM). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks.
I admit I was expecting a requirement to add FindFLANN.cmake
to CMAKE_MODULE_PATH
, but I suspect PCLConfig.cmake
is doing that under the hood. Even better 🙌
Let's discuss squash strategy. I would propose to squash the first three commits and leave the last one separate.
115d80e
to
4081492
Compare
I moved every changed in vfh_recognition/CMakeLists.txt to second commit, too ;). |
4081492
to
7c9d8c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved every changed in vfh_recognition/CMakeLists.txt to second commit, too ;).
Cool thanks 👍
Base of documentation and coding style is shipped FindGTest.cmake script of CMake