-
Notifications
You must be signed in to change notification settings - Fork 61
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
Plain cmake #69
Plain cmake #69
Conversation
See my ros-industrial/abb_libegm#63 (comment). The same applies here of course. |
@gavanderhoorn, I assume that similar commits concerning travis from ros-industrial/abb_libegm#63 should be applied here as well, correct? |
Correct. |
It seems that I made a wrong assumption in commit 5a25561. I.e. regarding @gavanderhoorn, is it possible to change the setup_poco_ppa.sh script to install the Poco libraries from |
I have created a new branch with some additions that I think would clean-up the CMake files, as well as updated the Poco installation script. I didn't add it to this PR yet, since I have been waiting for some comments, but I think this will have to wait until next year. |
This one is a little trickier. The base CMake changes look OK, but the PPA situation requires some more attention.
As a high-level comment: try to make commits smaller. Reverting just the
No, we should not do that. Poco is used by many projects and replacing a system-matched version with one from another distribution is not a good idea (ABI compatibility etc). If we just want to use the find script, we could always vendor it into You're primarily interested in that find script because of the support for the version specificer, correct?
There are some interesting changes there, but we'll deal with those in a follow-up PR after we merge this one. Another high-level comment: leave the check for whether CI is running a Xenial job out of the PPA setup script. It's not the place for it. |
Thanks for the comments @gavanderhoorn.
I need to "burn my hand" a few times before I actually learn 😉
Ah, ok, I see.
My main reason was to remove the dependency on the catkin package
Yes, that would be good. I also have a few pending code changes I would like merge before a follow-up PR. |
@jontje: if we're copying a |
I opted for the least effort approach (at least for me), since I knew where to find this script, and I see this as a more or less temporary solution. But if you know of a nicer script, then we can take that one instead. |
One from a newer version of CMake? :) IIRC, @traversaro has mentioned a few times that newer versions export @traversaro: would you happen to know starting from which version things normalise wrt |
Are we discussing about
The first CMake version that provides protobuf imported targets is CMake 3.9 https://cmake.org/cmake/help/v3.9/module/FindProtobuf.html . Note that however if you link imported targets as |
Hm. I may have mixed Protobuf and Poco. Thanks for the info in any case @traversaro. |
@gavanderhoorn, I assume that the current solution for finding the Poco package will suffice for now due to the latest comments. I looked around a bit for a Poco script in a newer version of CMake, but I didn't find anything. |
I've added 33c10fb as we weren't installing the manifest, which makes this package 'invisible' after installation (in a ROS context). |
To prevent using a system-provided FindPoco script.
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.
One minor comment in-line, other than that: 👍
Apologies for leaving this for so long @jontje :(
No worries @gavanderhoorn! I know you are busy, and I have had plenty of other tasks to spend my time on 😄 |
Thanks a lot both @gavanderhoorn and @traversaro! |
@jontje: you'll also update the readme to document the migration to plain cmake like in |
Good :) If you could prepare a quick PR we can get it merged in quickly. |
Draft PR that turns the library into a plain cmake package, and it aims to solve issue #3.
The main reason for this is to be able to build and use the library regardless if e.g.: