ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I think this can be related to your problem:

  • https://discourse.ros.org/t/call-cmake-add-custom-command-after-rosidl-generator-py-is-done/22299
add_custom_command(
  TARGET ${PROJECT_NAME}
  POST_BUILD
  COMMAND echo "FOO"
  COMMENT ""
  VERBATIM)

It seems the syntax is a bit different + a POST_BUILD flag

I think this can be related to your problem:

  • https://discourse.ros.org/t/call-cmake-add-custom-command-after-rosidl-generator-py-is-done/22299
add_custom_command(
  TARGET ${PROJECT_NAME}
  POST_BUILD
  COMMAND echo "FOO"
  COMMENT ""
  VERBATIM)

It seems the syntax is a bit different + a POST_BUILD flagflag:

POST_BUILD

Run after all other rules within the target have been executed.