Build only modified packages with Colcon, ROS2
Hello,
I am using ROS 2 bouncy built from source on Ubuntu 18.04 and I was wondering if there was a command to only build the modified packages with colcon similar to how catkin worked (tell me if I'm wrong ??) on ROS 1 ?
I found the colcon build --packages-select <name-of-pkg>
command to only build the selected package and the colcon build --packages-up-to <name-of-pkg>
to build the selected package and ALL its dependencies but it will still rebuild things like rclcpp, fastrtps and co...
Which
catkin
command are you referring to that you want an equivalent for?Haven't use ros 1 in quite some time, but I remember that
catkin_make
would just build the modified packages ?catkin_make
is different because it invokes CMake only once and within CMake adds the directory of each package. This approach doesn't scale well since it might have colliding target names across packages as well as each package must declared cross packages dependencies.