-
Notifications
You must be signed in to change notification settings - Fork 337
Modernize CMakeLists.txt to remove deprecated ament_target_dependencies (Fixes #2210) #2210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LalitNarayanYadav Thank you for your comments. Just some minor comments, if they look good, you can commit them directly from UI
controller_manager/CMakeLists.txt
Outdated
|
||
find_package(controller_interface REQUIRED) | ||
find_package(controller_manager_msgs REQUIRED) | ||
find_package(diagnostic_updater REQUIRED) | ||
find_package(hardware_interface REQUIRED) | ||
find_package(pluginlib REQUIRED) | ||
find_package(rclcpp REQUIRED) | ||
find_package(realtime_tools REQUIRED) | ||
find_package(std_msgs REQUIRED) | ||
find_package(libstatistics_collector REQUIRED) | ||
find_package(generate_parameter_library REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this change?
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
Co-authored-by: Sai Kishor Kothakota <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review the changes.
controller_manager/CMakeLists.txt
Outdated
@@ -26,7 +26,6 @@ find_package(backward_ros REQUIRED) | |||
foreach(Dependency IN ITEMS ${THIS_PACKAGE_INCLUDE_DEPENDS}) | |||
find_package(${Dependency} REQUIRED) | |||
endforeach() | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this link back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Co-authored-by: Sai Kishor Kothakota <[email protected]>
@LalitNarayanYadav Please fix the failing CI jobs. Please try to install pre-commit and fix by running the |
It would also be good to give the PR a meaningful title. @LalitNarayanYadav hope you don't mind me asking but how much of the original content of this PR was AI generated? |
☝️ @LalitNarayanYadav did this build for you locally? |
Modernize CMakeLists to remove
ament_target_dependencies()
deprecation warningsThis PR updates the
CMakeLists.txt
file to replace deprecatedament_target_dependencies()
calls with moderntarget_link_libraries()
using namespaced targets, as recommended by ROS 2 on Rolling.✅ Changes
ament_target_dependencies()
usages withtarget_link_libraries()
and appropriate namespaced targets.📦 Benefits
Closes #2207