ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I think the syntax of your add_dependencies() should be:
add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_gencpp})
That should work, but the currently-recommended variable name for expanding self-defined messages and services is:
add_dependencies(uuid_msgs ${uuid_msgs_EXPORTED_TARGETS})
I wrote that without ${PROJECT_NAME}
because others reading this question may be confused by the fact that this library target has the same name as your package.
2 | No.2 Revision |
I think the syntax of your add_dependencies() should be:
add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_gencpp})
That should work, but the currently-recommended variable name for expanding self-defined messages and services is:
add_dependencies(uuid_msgs ${uuid_msgs_EXPORTED_TARGETS})
${${PROJECT_NAME}_EXPORTED_TARGETS})
I wrote that without using the
target, because others reading this question may be confused by the fact that ${PROJECT_NAME}uuid_msgsthis your library target has the same name as your package.
3 | remove incorrect suggestion |
I think the syntax of your add_dependencies() should be:UPDATED to remove incorrect suggestion, see comments below.
add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_gencpp})
That should work, but the The currently-recommended variable name for expanding self-defined messages and services is:
add_dependencies(uuid_msgs ${${PROJECT_NAME}_EXPORTED_TARGETS})
I wrote that using the uuid_msgs
target, because others reading this question may be confused by the fact that your library target has the same name as your package.