-
-
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
Unifies Find scripts in PCLConfig #1421
Conversation
Looks really awesome. I can't test it at the moment, but otherwise +1 :). |
@ahundt could you check if this pr solves your problem? |
I've been talking to a friend (@v4hn) about it and he proposed to do it rather like this: |
The main idea here is to provide Find-scripts with the library, which are not provided by cmake or the specific dependencies (yet). |
The idea of eliminating redundancy is appealing. However, I have serious concerns about the proposed implementation. There is always a difference between the CMake code in Just to give an example. The code for detection of DepthSense SDK has slight differences between the "find" script and the "config" script. Originally when I contributed it, it was the same, but then someone showed up (actually @v4hn) and pointed that he gets configuration errors. So we introduced changes in #1337. With such cases in mind, applying your changes feels like opening a can of worms for me. Especially before 1.8.0 release. |
On Fri, Nov 13, 2015 at 10:00:09AM -0800, Sergey Alexandrov wrote:
There are differences, yes. But there shouldn't be any.
I never noticed the issue number :) Concerning this particular issue: actually they were not the same before that commit.
imho this is a can of worms that should be opened and cleaned up before the next major release. |
You are probably right about how the things should be. And that this "can" should be opened. However, I would strongly disagree that now is the right time. Granted, we will introduce configuration issues on some systems. What should be the time frame for waiting for people to catch and report them? How much should we postpone the release? I'd rather release first and then venture into letting the worms out. |
+1 |
f0e7572
to
cc9849a
Compare
Rebased and using @v4hn approach. Should be a bit cleaner. |
Would be nice to get rid of the |
Hey @fran6co. Can you address the merge conflicts once we release 1.8.1? It would be good to integrate this in the early stage of our preparation for 1.9.0. |
PCLConfig.cmake.in
Outdated
@@ -896,8 +557,6 @@ endif(NOT "${PCL_DEFINITIONS}" STREQUAL "") | |||
|
|||
pcl_remove_duplicate_libraries(PCL_LIBRARIES PCL_DEDUP_LIBRARIES) | |||
set(PCL_LIBRARIES ${PCL_DEDUP_LIBRARIES}) | |||
# Add 3rd party libraries, as user code might include our .HPP implementations | |||
list(APPEND PCL_LIBRARIES ${BOOST_LIBRARIES} ${QHULL_LIBRARIES} ${OPENNI_LIBRARIES} ${OPENNI2_LIBRARIES} ${ENSENSO_LIBRARIES} ${davidSDK_LIBRARIES} ${DSSDK_LIBRARIES} ${RSSDK_LIBRARIES} ${FLANN_LIBRARIES} ${VTK_LIBRARIES}) |
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.
Is this not necessary?
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 can't quite remember why I removed it, I'm putting it back just in case.
@SergioRAgostinho I'll rebase it during this week. |
If possible I would wait 'till the actual 1.8.1 release. In theory there's only one more PR in 1.8.1 which touches CMake related things and it should not generate a conflict with this one, but just wanting to prevent the extra effort. Don't forget about my comment/question in line 900. |
@SergioRAgostinho rebased. |
👍 To be merged once the probation period for 1.8.1 is over. |
@fran6co Can you rebase things again? I'm gonna merge it and cross my fingers :) |
without any testing I looked at the changes and it appears reasonable to me. For some reason I lost track of this. |
@SergioRAgostinho done |
Pandora's box opened 😅 |
hey only 2 years to get it merged. :-) at least it is done! Hopefully it is not still 2 years until the next release! |
Supersedes #1416