catkin / catkin_tools

Command line tools for working with catkin
Apache License 2.0
163 stars 146 forks source link

add `catkin build --no-make` option to build `cmake only` and not to run `make` #763

Closed knorth55 closed 6 months ago

knorth55 commented 1 year ago

this PR adds catkin build --no-make options for catkin build. with this option, we can only run cmake and skip make commands during catkin build.

this option is useful when we use clang-tidy, because it only requires cmake. for example, we can run catkin build --no-make and run clang-tidy like this.

sample

mkdir catkin_ws/src -p
cd catkin_ws/src
git clone https://github.com/ros/geometry_tutorials
cd ..
catkin config --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
catkin build --no-make
clang-tidy -p build/turtle_tf2 src/geometry_tutorials/turtle_tf2/src/message_filter.cpp