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

Cannot add target-level dependencies to non-existent target

asked 2018-09-23 23:12:14 -0500

masters3d gravatar image
CMake Error at /opt/ros/kinetic/share/catkin/cmake/test/tests.cmake:114 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "_run_tests_mynode".

  The add_dependencies works for top-level logical targets created by the
  add_executable, add_library, or add_custom_target commands.  If you want to
  add file-level dependencies see the DEPENDS option of the add_custom_target
  and add_custom_command commands.
Call Stack (most recent call first):
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-23 23:15:28 -0500

masters3d gravatar image

The name of the node was run_tests_mynode, the cryptic error goes away and compiles fine once you rename you node to something that does not include run_tests_ as its starting of the name. Probably a bug but I posted here for visibility since I wasted about 45 mins in this issue myself.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-09-23 23:12:14 -0500

Seen: 3,627 times

Last updated: Sep 23 '18