Skip to content

Export a modern CMake target - #179

Merged
sloretz merged 1 commit into
rollingfrom
sloretz__export_modern_cmake_target
Mar 19, 2025
Merged

sloretz merged 1 commit into
rollingfrom
sloretz__export_modern_cmake_target

Conversation

@sloretz

@sloretz sloretz commented Mar 18, 2025

Copy link
Copy Markdown
Contributor

Currently rmw_connextdds only exports old style CMake variables. This PR makes it export a modern CMake target.

Downstream packages that depend on rmw_connextdds directly can now use target_link_libraries() with the modern CMake target like so:

target_link_libraries(my_downstream_target PUBLIC rmw_connextdds::rmw_connextdds)

I think this should fix CI on ros2/system_tests#566

Signed-off-by: Shane Loretz <[email protected]>
@sloretz

sloretz commented Mar 18, 2025 •

Copy link
Copy Markdown
Contributor Author

Pulls: #179
Gist: https://gist.githubusercontent.com/sloretz/d7c69264809f0260fb23d2564069ec6c/raw/483ea84c7caf8fcede1fa99b6db5d8ba4f379f9f/ros2.repos
BUILD args: --packages-above-and-dependencies rmw_connextdds
TEST args: --packages-above rmw_connextdds
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/15416

  • Linux Build Status
  • Linux-aarch64 Build Status Expected, connext is skipped on this platform
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Relaunched linux job

@sloretz
sloretz merged commit 52ffdba into rolling Mar 19, 2025
@sloretz
sloretz deleted the sloretz__export_modern_cmake_target branch March 19, 2025 18:45
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.

3 participants