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

Revision history [back]

click to hide/show revision 1
initial version

The answer is that you have to add the add_dependencies() call after the add_library() call.

Unfortunately a lot of frustration was caused by the fact that neither the documentation at: http://wiki.ros.org/catkin/CMakeLists.txt or http://www.cmake.org/cmake/help/v3.0/command/add_dependencies.html states this explicitly.