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

catkin_make builds all packages in a workspace within the same CMake context. So there is no "order" between packages.

To make sure your packages still compile correctly with catkin_make you have to make sure to also specify cross-package target dependencies (e.g. using the "EXPORTED_TARGETS" mentioned in the docs).

If you actually want to build the packages in separate CMake invocations (which will avoid the need for cross-package target dependencies) you can use either of the following build tools: catkin_make_isolated (recommended for ROS 1), catkin_tools (not recommended but very powerful and used by many people already), colcon (developed for ROS 2 and should work for ROS 1 too, very young so not as robust as the other ones yet).