Skip to content

[ROS2] Restrict Eigen plugin definitions to only targets linking against grid_map_core #519

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

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

msplr
Copy link

@msplr msplr commented Apr 30, 2025

This addresses #382 such that the Eigen plugin include paths are only defined for targets linking against grid_map_core.

I manually tested this in a dummy package with two executables, where only one is linking against grid_map_core.

@Ryanf55 Should this fix target rolling and/or jazzy?

@msplr msplr added bug ros2 Affects ROS 2 labels Apr 30, 2025
@msplr msplr requested a review from Ryanf55 April 30, 2025 18:53
@msplr msplr self-assigned this Apr 30, 2025
@@ -127,6 +130,4 @@ endif()

ament_export_targets(export_${PROJECT_NAME} HAS_LIBRARY_TARGET)
ament_export_dependencies(Eigen3)
ament_package(CONFIG_EXTRAS
cmake/${PROJECT_NAME}-extras.cmake
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cmake extras should not be needed, since the public target_compile_definitions will be propagated to all dependencies.

@Ryanf55
Copy link
Collaborator

Ryanf55 commented May 2, 2025

Thanks, looks good. Rolling is perfect.
I'll need to troubleshoot CI before we can merge this. If you have suggestions for getting that back up, it would be helpful because I'm slammed at work the next two weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ros2 Affects ROS 2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants