Skip to content

Create an aggregate target for rosidl generated interfaces targets (backport #947)#948

Open
mergify[bot] wants to merge 1 commit intokiltedfrom
mergify/bp/kilted/pr-947
Open

Create an aggregate target for rosidl generated interfaces targets (backport #947)#948
mergify[bot] wants to merge 1 commit intokiltedfrom
mergify/bp/kilted/pr-947

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Mar 20, 2026

Description

Fixes #746

Adds a new aggregate target via CMake INTERFACE target type to bundle together the ${package_TARGETS} that are currently needed to use rosidl interfaces.

target_link_libraries(my_lib ${sensor_msgs_TARGETS}

can now use the following to get the same result.

target_link_libraries(my_lib sensor_msgs::sensor_msgs

Is this user-facing behavior change?

This is a new feature that users can opt in to using.

Did you use Generative AI?

This was assisted by Claude Code using Sonnet 4.6 model, all lines manually reviewed.

Additional Information

N/A


This is an automatic backport of pull request #947 done by Mergify.

)

Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
(cherry picked from commit e61e46d)
@emersonknapp emersonknapp self-assigned this Mar 20, 2026
@ahcorde
Copy link
Contributor

ahcorde commented Mar 23, 2026

Pulls: #948
Gist: https://gist.githubusercontent.com/ahcorde/49a8152014137fd4920a70d4a8ba986f/raw/7d8029d33ce136a38d14388579e68b2ea1355368/ros2.repos
BUILD args: --packages-above-and-dependencies rosidl_cmake
TEST args: --packages-above rosidl_cmake
ROS Distro: kilted
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18607

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

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.

2 participants