The CMake invocation cmake --build . --cmake-target foo fails when foo is not a valid target in the project. When building a whole ROS 1 workspace we want to build only the tests using the target tests. Since some packages might not have any tests the target isn't always available. Hence we need this new option to just skip packages which don't have the requested target.
The CMake invocation
cmake --build . --cmake-target foo
fails whenfoo
is not a valid target in the project. When building a whole ROS 1 workspace we want to build only the tests using the targettests
. Since some packages might not have any tests the target isn't always available. Hence we need this new option to just skip packages which don't have the requested target.