Skip to content

Commit

Permalink
Improve deprecation notice of rosidl_target_interface to give a hint …
Browse files Browse the repository at this point in the history
…on how to update the code (#788)

Signed-off-by: Alexis Paques <[email protected]>
  • Loading branch information
AlexisTM authored Feb 29, 2024
1 parent 0425e86 commit 0775e10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rosidl_cmake/cmake/rosidl_target_interfaces.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
# @public
#
function(rosidl_target_interfaces target interface_target typesupport_name)
message(DEPRECATION "Use rosidl_get_typesupport_target() and target_link_libraries() instead of rosidl_target_interfaces()")
message(DEPRECATION "Use rosidl_get_typesupport_target() and target_link_libraries() instead of rosidl_target_interfaces(). i.e:
rosidl_get_typesupport_target(cpp_typesupport_target \"\${PROJECT_NAME}\" \"rosidl_typesupport_cpp\")
target_link_libraries(\${PROJECT_NAME}_node \"\${cpp_typesupport_target}\")
")
if(ARGN)
message(FATAL_ERROR
"rosidl_target_interfaces() called with unused arguments: ${ARGN}")
Expand Down

0 comments on commit 0775e10

Please sign in to comment.