Ask Your Question
0

ament_export_targets vs ament_export_interfaces

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

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
1

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 127 times

Last updated: Feb 18