Skip to content

Commit 0775e10

Browse files
authored
Improve deprecation notice of rosidl_target_interface to give a hint on how to update the code (#788)
Signed-off-by: Alexis Paques <[email protected]>
1 parent 0425e86 commit 0775e10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rosidl_cmake/cmake/rosidl_target_interfaces.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
# @public
3030
#
3131
function(rosidl_target_interfaces target interface_target typesupport_name)
32-
message(DEPRECATION "Use rosidl_get_typesupport_target() and target_link_libraries() instead of rosidl_target_interfaces()")
32+
message(DEPRECATION "Use rosidl_get_typesupport_target() and target_link_libraries() instead of rosidl_target_interfaces(). i.e:
33+
rosidl_get_typesupport_target(cpp_typesupport_target \"\${PROJECT_NAME}\" \"rosidl_typesupport_cpp\")
34+
target_link_libraries(\${PROJECT_NAME}_node \"\${cpp_typesupport_target}\")
35+
")
3336
if(ARGN)
3437
message(FATAL_ERROR
3538
"rosidl_target_interfaces() called with unused arguments: ${ARGN}")

0 commit comments

Comments
 (0)