0
$\begingroup$

Rosanswers logo

For srv generation, I've taken to using add_service_files(DIRECTORY srv) instead of listing each file individually, since it's more compact and I don't ever put srvs in that directory that I don't want generated.

However, one downside is, since you don't have to edit the CMakeLists.txt file when you add a new srv to that directory, it doesn't generate them unless I do a catkin clean or I make some edit to CMakeLists.txt.

What I want to know, is there a way to force it to generate the srvs with a catkin build without having to do a clean, and without making bogus edits to CMakeLists.txt?


Originally posted by adamconkey on ROS Answers with karma: 642 on 2018-07-18

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

With catkin build you can trigger an explicit CMake configure invocation by passing --force-cmake (see catkin build --help).


Originally posted by Dirk Thomas with karma: 16276 on 2018-07-18

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.