-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rosidl_get_typesupport_target and deprecate rosidl_target_interfaces #606
Conversation
Also deprecate rosidl_target_interfaces(). Getting the target name allows consumers to choose the keyword arguments that they pass to target_link_libraries() Signed-off-by: Shane Loretz <[email protected]>
CI (repos: |
CI (repos: |
Signed-off-by: Shane Loretz <[email protected]>
Warning on windows is caused by ros2/rclcpp#1731 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, but I'll approve anyway.
CI is green, but that is dependent on a number of other changes so downstream packages don't start spitting warnings. I'll assume you'll merge all of them at once.
|
||
set("${var}" "${output_target}" PARENT_SCOPE) | ||
endfunction() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra trailing space at the end of the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the extra newline in 0f158d7
Oh, can I also request that you add a changelog note to https://github.com/ros2/ros2_documentation/blob/rolling/source/Releases/Release-Humble-Hawksbill.rst , since this will cause a bunch of warnings on packages outside of the core? |
Signed-off-by: Shane Loretz <[email protected]>
Added a note to the changelog in ros2/ros2_documentation#1798 |
CI (repos: |
CI Green and all linked PRs approved. I'll coordinate merging all at once with the libstatistics_collector maintainers. |
@sloretz The nightlies went yellow from this. It looks like there is one more use of the deprecated |
This adds
rosidl_get_typesupport_target()
which returns the name of a typesupport target. This can be used in atarget_link_libraries()
call to make a target depend on generated code for interfaces generated in the same CMake project.This PR also deprecates
rosidl_target_interfaces()
which inconveniently wrapstarget_link_libraries()
and has what appears to be extra unnecessaryadd_dependencies()
andtarget_include_directories()
calls.Adding
rosidl_get_typesupport_target()
is in support of ros2/python_cmake_module#6 , specifically replacing a good bit ofFindPythonExtra
withPython3_add_library()
.Python3_add_library()
callstarget_link_libraries()
internally on the given target with a Keyword argument, but that conflicts withrosidl_target_interfaces()
which uses the non-keyword version oftarget_link_libraries()
internally. CMake won't allow those two styles to mix on the same target (without using theOLD
policy of CMP0023). This PR allows more control over which version oftarget_link_libraries()
is used, and that should allowrosidl_generator_py
to usePython3_add_library()