Skip to content

Removed deprecated ament_cmake_target_dependencies - #583

Merged
ahcorde merged 1 commit into
rollingfrom
ahcorde/rolling/remove_ament_cmake_target_dependencies
May 19, 2025
Merged

ahcorde merged 1 commit into
rollingfrom
ahcorde/rolling/remove_ament_cmake_target_dependencies

Conversation

@ahcorde

@ahcorde ahcorde commented May 16, 2025

Copy link
Copy Markdown
Contributor

Removed ament_cmake_target_dependencies

@ahcorde ahcorde self-assigned this May 16, 2025
@ahcorde

ahcorde commented May 19, 2025

Copy link
Copy Markdown
Contributor Author

Pulls: #583
Gist: https://gist.githubusercontent.com/ahcorde/2d115ef212aaeeb83433a8512604872b/raw/7e28ba53bba5c3fa80d3411490979678e08c5499/ros2.repos
BUILD args: --packages-above-and-dependencies ament_cmake_target_dependencies
TEST args: --packages-above ament_cmake_target_dependencies
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16032

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

@ahcorde
ahcorde merged commit 4f6c8ed into rolling May 19, 2025
@ahcorde
ahcorde deleted the ahcorde/rolling/remove_ament_cmake_target_dependencies branch May 19, 2025 17:12
@rhaschke

Copy link
Copy Markdown
Contributor

Removing this function only after a 2-months deprecation phase (#572) seems to be very quick!
This PR definitely broke several packages on rolling.

@ahcorde

ahcorde commented May 21, 2025

Copy link
Copy Markdown
Contributor Author

happy to help opening PRs, do you have a list of the failing packages?

@rhaschke

Copy link
Copy Markdown
Contributor

Do you have a list of the failing packages?

No, I don't have a complete list. But, most MoveIt-related packages are not yet adapted (although we already have PRs for many of them).

@Timple

Timple commented May 23, 2025

Copy link
Copy Markdown
Contributor

It's a shame this nice deprecation message was so short-lived.

I ran into this compilation error without ever knowing there was a deprecation. Can we perhaps fail but with this nice deprecation message? That's much easier to fix 🙂

@christophfroehlich

Copy link
Copy Markdown

I agree, the release including #572 never got synced and people might not have been aware of that.

sloretz added a commit that referenced this pull request Jun 3, 2025
sloretz added a commit that referenced this pull request Jun 3, 2025
wentasah added a commit to wentasah/ros2_console_tools that referenced this pull request Aug 17, 2026
ament_target_dependencies is deprecated [1] and was removed in ROS
Lyrical [2]. This commit replaces calls to ament_target_dependencies
with plain CMake command target_link_libraries as suggested in [1].
While [1] suggested to replace interface packages with ${xxx_TARGETS},
this is not necessary since [3]. Therefore, this commit replaces every
"xxx" package with "xxx::xxx" target.

Compilation was tested under ROS Jazzy and Lyrical.

[1]: ament/ament_cmake#572
[2]: ament/ament_cmake#583
[3]: ros2/rosidl#947
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.

5 participants