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

Revision history [back]

click to hide/show revision 1
initial version

answered 2013-06-06 11:56:07 -0500

joq gravatar image

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.

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 ${PROJECT_NAME}uuid_msgs target, because others reading this question may be confused by the fact that this your library target has the same name as your package.

click to hide/show revision 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.