Repository navigation
Revert "Revert "Removed deprecated ament_cmake_target_dependencies"" - #614
Merged
ahcorde merged 1 commit intoJan 13, 2026
Conversation
…encies (…" This reverts commit d9f4771.
Contributor
Author
|
Pulls: #614 |
ahcorde
deleted the
revert-585-revert-583-ahcorde/rolling/remove_ament_cmake_target_dependencies
branch
January 13, 2026 09:09
6 tasks
6 tasks
sbilo
added a commit
to sbilo/naoqi_driver2
that referenced
this pull request
Apr 2, 2026
ament_target_dependencies was removed from ament_cmake rolling in Jan 2026 (ament/ament_cmake#614). The macro still exists in the standalone ament_cmake_target_dependencies package but is no longer auto-included. Add an explicit find_package to restore it.
6 tasks
nbbrooks
added a commit
to nbbrooks/moveit2
that referenced
this pull request
Jun 8, 2026
ament_target_dependencies was deprecated and removed upstream (ament/ament_cmake#614). Replace it with explicit target_link_libraries(... NAMESPACE::TARGET) calls across the codebase, matching the ROS 2 Kilted-and-newer guidance. Two subtleties needed extra care: - ament_target_dependencies(... Boost ...) implicitly linked every Boost component found by ConfigExtras.cmake (chrono, date_time, filesystem, iostreams, program_options, regex, serialization, system, thread). A bare target_link_libraries(... Boost::headers) drops those compiled components and breaks any translation unit that uses non-header-only Boost. Targets that need them now name their components explicitly: - moveit_test_utils: + Boost::regex (robot_model_test_utils.cpp uses boost::split_regex / boost::regex) - moveit_ompl_interface: + Boost::serialization (detail/constraints_library.hpp uses boost::serialization::map) - moveit_ros_benchmarks: + Boost::filesystem + Boost::regex (BenchmarkExecutor.cpp uses both) - The random_numbers::random_numbers imported target was only added upstream in moveit/random_numbers#47 (merged 2025-05-27, "[kilted]"), so it doesn't exist on jazzy or humble and the CMake configure step fails there. moveit_kdl_kinematics_plugin uses the variable form ${random_numbers_LIBRARIES} with a matching target_include_directories instead, so the build works across all supported distros. Also add find_package(rviz2 REQUIRED) to moveit_ros_visualization so that rviz2_VERSION is available for the Qt5/Qt6 selection introduced in moveit#3707, and resolve merge conflicts with that PR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
nbbrooks
added a commit
to nbbrooks/moveit2
that referenced
this pull request
Jun 14, 2026
ament_target_dependencies was deprecated and removed upstream (ament/ament_cmake#614). Replace it with explicit target_link_libraries(... NAMESPACE::TARGET) calls across the codebase, matching the ROS 2 Kilted-and-newer guidance. Two subtleties needed extra care: - ament_target_dependencies(... Boost ...) implicitly linked every Boost component found by ConfigExtras.cmake (chrono, date_time, filesystem, iostreams, program_options, regex, serialization, system, thread). A bare target_link_libraries(... Boost::headers) drops those compiled components and breaks any translation unit that uses non-header-only Boost. Targets that need them now name their components explicitly: - moveit_test_utils: + Boost::regex (robot_model_test_utils.cpp uses boost::split_regex / boost::regex) - moveit_ompl_interface: + Boost::serialization (detail/constraints_library.hpp uses boost::serialization::map) - moveit_ros_benchmarks: + Boost::filesystem + Boost::regex (BenchmarkExecutor.cpp uses both) - The random_numbers::random_numbers imported target was only added upstream in moveit/random_numbers#47 (merged 2025-05-27, "[kilted]"), so it doesn't exist on jazzy or humble and the CMake configure step fails there. moveit_kdl_kinematics_plugin uses the variable form ${random_numbers_LIBRARIES} with a matching target_include_directories instead, so the build works across all supported distros. Also add find_package(rviz2 REQUIRED) to moveit_ros_visualization so that rviz2_VERSION is available for the Qt5/Qt6 selection introduced in moveit#3707, and resolve merge conflicts with that PR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
nbbrooks
added a commit
to nbbrooks/moveit2
that referenced
this pull request
Jun 15, 2026
ament_target_dependencies was deprecated and removed upstream (ament/ament_cmake#614). Replace it with explicit target_link_libraries(... NAMESPACE::TARGET) calls across the codebase, matching the ROS 2 Kilted-and-newer guidance. Two subtleties needed extra care: - ament_target_dependencies(... Boost ...) implicitly linked every Boost component found by ConfigExtras.cmake (chrono, date_time, filesystem, iostreams, program_options, regex, serialization, system, thread). A bare target_link_libraries(... Boost::headers) drops those compiled components and breaks any translation unit that uses non-header-only Boost. Targets that need them now name their components explicitly: - moveit_test_utils: + Boost::regex (robot_model_test_utils.cpp uses boost::split_regex / boost::regex) - moveit_ompl_interface: + Boost::serialization (detail/constraints_library.hpp uses boost::serialization::map) - moveit_ros_benchmarks: + Boost::filesystem + Boost::regex (BenchmarkExecutor.cpp uses both) - The random_numbers::random_numbers imported target was only added upstream in moveit/random_numbers#47 (merged 2025-05-27, "[kilted]"), so it doesn't exist on jazzy or humble and the CMake configure step fails there. moveit_kdl_kinematics_plugin uses the variable form ${random_numbers_LIBRARIES} with a matching target_include_directories instead, so the build works across all supported distros. Also add find_package(rviz2 REQUIRED) to moveit_ros_visualization so that rviz2_VERSION is available for the Qt5/Qt6 selection introduced in moveit#3707, and resolve merge conflicts with that PR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
nbbrooks
added a commit
to moveit/moveit2
that referenced
this pull request
Jun 16, 2026
* Remove use of ament_target_dependencies ament_target_dependencies was deprecated and removed upstream (ament/ament_cmake#614). Replace it with explicit target_link_libraries(... NAMESPACE::TARGET) calls across the codebase, matching the ROS 2 Kilted-and-newer guidance. Two subtleties needed extra care: - ament_target_dependencies(... Boost ...) implicitly linked every Boost component found by ConfigExtras.cmake (chrono, date_time, filesystem, iostreams, program_options, regex, serialization, system, thread). A bare target_link_libraries(... Boost::headers) drops those compiled components and breaks any translation unit that uses non-header-only Boost. Targets that need them now name their components explicitly: - moveit_test_utils: + Boost::regex (robot_model_test_utils.cpp uses boost::split_regex / boost::regex) - moveit_ompl_interface: + Boost::serialization (detail/constraints_library.hpp uses boost::serialization::map) - moveit_ros_benchmarks: + Boost::filesystem + Boost::regex (BenchmarkExecutor.cpp uses both) - The random_numbers::random_numbers imported target was only added upstream in moveit/random_numbers#47 (merged 2025-05-27, "[kilted]"), so it doesn't exist on jazzy or humble and the CMake configure step fails there. moveit_kdl_kinematics_plugin uses the variable form ${random_numbers_LIBRARIES} with a matching target_include_directories instead, so the build works across all supported distros. Also add find_package(rviz2 REQUIRED) to moveit_ros_visualization so that rviz2_VERSION is available for the Qt5/Qt6 selection introduced in #3707, and resolve merge conflicts with that PR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> * Address review feedback: fix Qt linking and drop redundant link deps Link the imported Qt targets (Qt${QT_VERSION_MAJOR}::Core/::Widgets) instead of the undefined ${QT_CORE}/${QT_WIDGETS} variables, remove a duplicate rviz_ogre_vendor::OgreMain, and drop redundant transitive dependencies (rmw_implementation, urdfdom_headers) already provided by rclcpp and urdfdom::urdf_parser. Co-Authored-By: Claude Opus 4.8 <[email protected]> * Remove redundant Qt discovery in moveit_setup_framework The rviz2-version-based Qt selection already finds Qt before any rviz or moveit dependency, so the second find_package(Qt6) block was redundant and could pull in Qt6 even on the Qt5 path. Co-Authored-By: Claude Opus 4.8 <[email protected]> * Address review feedback: export Qt dep, drop unused Boost in benchmarks Add Qt to moveit_setup_assistant's exported dependencies so downstream consumers of its targets resolve the Qt imported targets. Drop the unused Boost::regex/Boost::filesystem links (and their includes) from benchmarks, which uses std::regex/std::filesystem. Co-Authored-By: Claude Opus 4.8 <[email protected]> * Address review feedback: link Boost::date_time, drop redundant class_loader Link Boost::date_time in moveit_ros_benchmarks and moveit_ompl_interface, which use boost::posix_time but only linked Boost::headers after the ament_target_dependencies(... Boost) removal (the old call pulled in all Boost components). The Boost::date_time imported target is already found via ConfigExtras.cmake / the top-level find_package. Drop the redundant class_loader::class_loader link from moveit_plan_execution and moveit_kinematics_plugin_loader; pluginlib::pluginlib already re-exports class_loader, and these targets only use the pluginlib wrapper (<pluginlib/class_loader.hpp>), not class_loader directly. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Address review feedback: export Qt Core/Widgets component packages ament_export_dependencies(Qt${QT_VERSION_MAJOR}) emits find_dependency(Qt6) in the package config, but find_package(Qt6) without COMPONENTS does not define the Qt6::Core / Qt6::Widgets imported targets that the exported targets link against. Downstream find_package(moveit_setup_framework) / find_package(moveit_setup_assistant) would then fail to resolve those targets. Export the standalone Qt${QT_VERSION_MAJOR}Core / Qt${QT_VERSION_MAJOR}Widgets packages instead, whose configs define Qt6::Core / Qt6::Widgets. The component find_package already sets Qt6Core_FOUND / Qt6Widgets_FOUND, so ament_export_dependencies accepts them. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Address review feedback: link/export tf2_ros where used in public headers moveit_robot_interaction and moveit_ros_occupancy_map_monitor use tf2_ros (tf2_ros::Buffer) in their public headers but only received it transitively. Link tf2_ros::tf2_ros (plus tf2/tf2_eigen, already used in robot_interaction's sources) explicitly and export it via THIS_PACKAGE_INCLUDE_DEPENDS so downstream consumers of those headers resolve the dependency. Also link tf2_ros into the occupancy_map_server executable, which uses tf2_ros::TransformListener/Buffer directly. Clarify the moveit_ros_move_group umbrella INTERFACE target comment: it exposes the capabilities API (moveit_move_group_capabilities_base); moveit_move_group_default_capabilities is a runtime pluginlib plugin and is intentionally excluded. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Link tf2_geometry_msgs via its imported target, not ${tf2_geometry_msgs_TARGETS} tf2_geometry_msgs is a plain C++ library package (not a rosidl interface package), exporting a single imported target tf2_geometry_msgs::tf2_geometry_msgs via ament_export_targets(). Linking that namespaced target is the idiomatic, documented form for a library, and it fails loudly if the target is ever missing -- whereas an undefined ${..._TARGETS} variable expands to empty and silently drops the dependency. The _TARGETS variable form is reserved for rosidl interface (msg/srv/action) packages, which generate multiple typesupport targets with no single aggregate target on all distros. No behavioral change: both forms resolve to the same target today. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
ruben-arts
added a commit
to prefix-dev/isaac-forge
that referenced
this pull request
Oct 6, 2026
ament_cmake 2.8.6 removed ament_target_dependencies() (ament/ament_cmake#614), so eight packages stopped configuring on Lyrical. - Seven NVIDIA packages get a patch that links each dependency's exported ${<pkg>_TARGETS} instead, as nvblox_ros already does upstream: 17 call sites in isaac_ros_vda5050_client, isaac_ros_cumotion, isaac_ros_foundationpose, nvblox_image_padding, nvblox_nav2, nvblox_message_adapters and unitree_hg_ros2_control. It keeps the plain target_link_libraries() signature the other calls on these targets use. - topic_based_ros2_control moves to PickNik's ade97969, "support current ROS distributions" (#45), which makes the same change upstream.
yishinli
added a commit
to yishinli/abb_ros2
that referenced
this pull request
Oct 26, 2026
ament_target_dependencies() was deprecated in Kilted (ament/ament_cmake#572) and removed in Rolling / Lyrical (ament/ament_cmake#614), so abb_hardware_interface, abb_rws_client and the abb_bringup tests fail to configure with "Unknown CMake command". Link the exported CMake targets directly instead. abb_hardware_interface only exports old-style variables, so abb_rws_client uses abb_hardware_interface_LIBRARIES / _INCLUDE_DIRS for it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
pastoriomarco
pushed a commit
to pastoriomarco/xarm_ros2
that referenced
this pull request
Nov 8, 2026
…in xarm_api and xarm_controller Upstream ROS 2 Lyrical removed ament_target_dependencies() (ament/ament_cmake#614). Link the exported targets instead (rclcpp::rclcpp, rclcpp_action::rclcpp_action, hardware_interface::hardware_interface, pluginlib::pluginlib, rclcpp_lifecycle::rclcpp_lifecycle and the message packages' *_TARGETS). Builds on a source-built Lyrical (rosdistro lyrical/2026-10-05) and on the NVIDIA Isaac ROS Lyrical packages.
pastoriomarco
pushed a commit
to pastoriomarco/xarm_ros2
that referenced
this pull request
Nov 8, 2026
…in xarm_api and xarm_controller Upstream ROS 2 Lyrical removed ament_target_dependencies() (ament/ament_cmake#614). Link the exported targets instead (rclcpp::rclcpp, rclcpp_action::rclcpp_action, hardware_interface::hardware_interface, pluginlib::pluginlib, rclcpp_lifecycle::rclcpp_lifecycle and the message packages' *_TARGETS). Builds on a source-built Lyrical (rosdistro lyrical/2026-10-05) and on the NVIDIA Isaac ROS Lyrical packages.
pastoriomarco
pushed a commit
to pastoriomarco/xarm_ros2
that referenced
this pull request
Nov 8, 2026
…in xarm_planner and xarm_moveit_servo Upstream ROS 2 Lyrical removed ament_target_dependencies() (ament/ament_cmake#614). Link the exported targets instead: moveit_ros_planning_interface::moveit_move_group_interface and ::moveit_planning_scene_interface (xarm_planner's public header uses both), rclcpp_components::component, rclcpp::rclcpp and the message packages' *_TARGETS. Verified with MoveIt 2.15.2 built from source on a source-built Lyrical (rosdistro lyrical/2026-10-05).
pastoriomarco
pushed a commit
to pastoriomarco/xarm_ros2
that referenced
this pull request
Nov 8, 2026
…in xarm_planner and xarm_moveit_servo Upstream ROS 2 Lyrical removed ament_target_dependencies() (ament/ament_cmake#614). Link the exported targets instead: moveit_ros_planning_interface::moveit_move_group_interface and ::moveit_planning_scene_interface (xarm_planner's public header uses both), rclcpp_components::component, rclcpp::rclcpp and the message packages' *_TARGETS. Verified with MoveIt 2.15.2 built from source on a source-built Lyrical (rosdistro lyrical/2026-10-05).
xmfcx
added a commit
to autowarefoundation/grid_map
that referenced
this pull request
Nov 13, 2026
ROS 2 Lyrical removed ament_target_dependencies (ament/ament_cmake#614). CMake then stops with: Unknown CMake command "ament_target_dependencies". Dependencies that export CMake targets link the targets. The grid_map packages that export only variables use <pkg>_LIBRARIES and <pkg>_INCLUDE_DIRS, which is what ament_target_dependencies did. Signed-off-by: Mete Fatih Cırıt <[email protected]>
xmfcx
added a commit
to autowarefoundation/grid_map
that referenced
this pull request
Nov 13, 2026
ROS 2 Lyrical removed ament_target_dependencies (ament/ament_cmake#614). CMake then stops with: Unknown CMake command "ament_target_dependencies". Dependencies that export CMake targets link the targets. The grid_map packages that export only variables use <pkg>_LIBRARIES and <pkg>_INCLUDE_DIRS, which is what ament_target_dependencies did. Signed-off-by: Mete Fatih Cırıt <[email protected]>
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #585
@sloretz do you think is time to remove this ?