ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ament_export_targets vs ament_export_interfaces

asked 2021-02-18 12:32:31 -0500

In reference to this on ROS Discourse: https://discourse.ros.org/t/ament-bes...

What is the difference practically between these two lines and when should I use one over the other?

ament_export_targets(export_${PROJECT_NAME} HAS_LIBRARY_TARGET)

and this one (as shown in the example at that link):

ament_export_interfaces(export_${PROJECT_NAME})

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-02-18 13:11:08 -0500

Replying to my own question. I found in the official documentation (here: https://index.ros.org//doc/ros2/Tutor...) this:

The ament_export_targets macro (ament_export_interfaces in Eloquent and older) exports the targets for CMake.

This seems to imply that ament_export_targets is a rename of ament_export_interfaces and should now be used instead.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-02-18 12:32:31 -0500

Seen: 987 times

Last updated: Feb 18 '21