-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: use modern cmake #70
Conversation
wep21
commented
Feb 13, 2024
- update CMakeLists.txt to use modern cmake
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
@jonbinney Could you review this PR? |
Is this needed yet? Looking at this page, humble hawksbill only needs cmake 3.14 on macos, and 3.18.4 on debian bullseye, so this would presumably break things for those platforms. What advantages does this change provide? |
Hello, This is a great improvement. Currently, to consume filters, you have to rely on the old-style CMake variable to get the include directories:
This is because the It is much preferable for consumers to just have to use The ROS tutorials now share that We both have made similar changes improvements across a suite of ROS 2 packages with no reports of bugs. |
CMakeLists.txt
Outdated
INTERFACE | ||
Boost::boost | ||
) | ||
target_include_directories(realtime_circular_buffer |
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.
Instead of repeating this call, consider using a for loop and giving a list of targets to set up the includes for.
This would reduce code duplication.
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.
address here
CMakeLists.txt
Outdated
ament_target_dependencies(mean | ||
"pluginlib" | ||
"rclcpp" | ||
realtime_circular_buffer |
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.
Can you specify PUBLIC or PRIVATE for the linkage type?
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.
address here
Co-authored-by: Ryan <ryanfriedman5410+github@gmail.com>
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
Signed-off-by: wep21 <daisuke.nishimatsu1021@gmail.com>
@jonbinney I appreciate it if you could decide whether to merge this PR based on the advantages described by @Ryanf55. |
I'm not sure how this works, but I just added the debian testing sources to my machine. After and
To use these changes as binaries in |
@Ryanf55 I think we have to wait bloom release to use new change. |
Yeaaaaah it needs to be released for other released packages to use it. I'll do that now for rolling. Any pressing need to do it for the other distros right now? If not, i'd like to wait and just make sure it doesn't break anything (it shouldn't, but I am constantly surprised by how minor changes can break things unexpectedly) |
Not an issue to let it simmer on rolling.
We are doing a CMake upgrade in grid_map, so it will needed on humble, but
not urgent.
…On Mon, Feb 26, 2024, 2:18 PM Jonathan Binney ***@***.***> wrote:
Yeaaaaah it needs to be released for other released packages to use it.
I'll do that now for rolling. Any pressing need to do it for the other
distros right now? If not, i'd like to wait and just make sure it doesn't
break anything (it shouldn't, but I am constantly surprised by how minor
changes can break things unexpectedly)
—
Reply to this email directly, view it on GitHub
<#70 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7DFD2SVXUQBG47QGXM6G3YVT3YVAVCNFSM6AAAAABDF3BE36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVGMYDGOJTGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
When building filters and laser_filters together in a rolling-desktop docker container, I'm getting a warning:
Digging deeper now to see if this is some odd quirk of ament_camke_auto, or some leftover cached cmake issue, or something else. |
(not saying that error is related to this PR, but i want to debug it before releasing) |
Ah, it looks like this PR adds |
Remove it. The targets are necessary for export are already exported by |
No worries - @Ryanf55 could you make the PR? I'll review and merge. |