Skip to content

Replace ament_target_dependencies calls #1373

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

urfeex
Copy link
Member

@urfeex urfeex commented May 21, 2025

ament_target_dependencies has become deprecated with ROS Kilted and raises an error for ROS Rolling. This replaces the deprecated calls by modern CMake target_link_libraries calls instead.

ament_target_dependencies has become deprecated with ROS Kilted and
raises an error for ROS Rolling. This replaces the deprecated calls by
modern CMake target_link_libraries calls instead.
@urfeex urfeex requested a review from a team May 21, 2025 09:50

add_executable(urscript_interface
src/urscript_interface.cpp
)
ament_target_dependencies(urscript_interface ${${PROJECT_NAME}_EXPORTED_TARGETS} ${THIS_PACKAGE_INCLUDE_DEPENDS})
target_link_libraries(urscript_interface
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
target_link_libraries(urscript_interface
target_link_libraries(urscript_interface PUBLIC

Should this have a PUBLIC tag as well.

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