Skip to content

Use imported targets for grid_map_ros - #545

Open
anttix wants to merge 1 commit into
ANYbotics:rollingfrom
anttix:fix/ament-target-linking
Open

Use imported targets for grid_map_ros#545
anttix wants to merge 1 commit into
ANYbotics:rollingfrom
anttix:fix/ament-target-linking

Conversation

@anttix

@anttix anttix commented Aug 10, 2026

Copy link
Copy Markdown

Summary

Replace the legacy ament_target_dependencies(... SYSTEM ...) call for grid_map_ros with explicit imported-target linking.

Why

The ROS 2 Lyrical ament toolchain no longer supports this dependency expansion for the library. A Resolute/Lyrical build succeeds when the generated ROS interface targets and exported library targets are linked directly.

This is intentionally narrower than #520: it does not change headers or rosbag APIs. It only modernizes target dependency propagation and can be backported independently for a Lyrical Bloom release.

Tracks #544.

Replace ament_target_dependencies with explicit imported-target linking for the grid_map_ros library.

The Lyrical ament toolchain no longer accepts the legacy SYSTEM dependency expansion used here. Linking the exported ROS interface targets directly preserves transitive include paths and libraries, while retaining grid_map_cv's legacy variables until that package exports an imported target.

This change allows grid_map_ros 2.4.0 to build on ROS 2 Lyrical and removes the need for downstream CMake patches.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mergify

mergify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant