[ros-users] [Discourse.ros.org] [Next Generation ROS] Own me…

Top Page
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Discourse.ros.org
To: ros-users
Subject: [ros-users] [Discourse.ros.org] [Next Generation ROS] Own message generator and building tests

When you build with `--build-tests`, the `BUILD_TESTING` cmake option is set to true.

>From looking at your project, I think you are only appending the target to the list of message targets if `BUILD_TESTING` is true:


That might explain why it's only failing when you build with `--build-testing`

As for why it's failing, [the documentation for `add_custom_target`](https://cmake.org/cmake/help/v3.5/command/add_custom_target.html) says that `add_dependencies()` should be used instead of `DEPENDS` if you're looking to add a dependency on another target, which looks to be your case with `ros2cs_message_generator` - not sure if that helps

[Visit Topic](http://discourse.ros.org/t/own-message-generator-and-building-tests/796/2) or reply to this email to respond.

If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
ros-users mailing list

Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>