Repository navigation
Install headers to include/${PROJECT_NAME} and Depend on rosidl_typesupport_* targets directly - #133
Merged
Merged
Conversation
Signed-off-by: Shane Loretz <[email protected]>
Contributor
Author
Signed-off-by: Shane Loretz <[email protected]>
Contributor
Author
Contributor
Author
|
Oops, do not review. I think CI needs to be broader and I'm seeing an issue locally |
sloretz
marked this pull request as draft
December 7, 2021 17:29
hidmic
reviewed
Dec 7, 2021
| include) | ||
| target_link_libraries(test_action_typesupport_c_builds | ||
| ${_AMENT_EXPORT_LIBRARIES}) | ||
| generate_test_msgs__rosidl_typesupport_c) |
There was a problem hiding this comment.
@sloretz hmm, I'm a bit uncomfortable depending on targets that may or may not be available (as these are provided by rosidl-specific ament extensions). I know I'm opening a can of worms but if we have to do this, something's off.
Contributor
Author
There was a problem hiding this comment.
Yeah, I think there isn't good support for using generated messages from the same package that generates them. It looks like a better option would be to use rosidl_get_typesupport_target() which was at least added for this purpose: ros2/rosidl#606
Contributor
Author
There was a problem hiding this comment.
Using rosidl_get_typesupport_target() in 49addc7
Signed-off-by: Shane Loretz <[email protected]>
sloretz
marked this pull request as ready for review
December 7, 2021 19:46
Contributor
Author
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Signed-off-by: Shane Loretz <[email protected]>
Contributor
Author
gbiggs
approved these changes
Jan 25, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of ament/ament_cmake#365Part of ros2/ros2#1150
Requires ros2/rosidl_python#149
This PR makes
test_msgsdepend on the generatedrosidl_typesupport_candrosidl_typesupport_cpptargets directly instead of depending on an internal ament_cmake variable. Then I made anINTERFACEtarget that exports the include directoriesinstead of usingament_export_include_directories()It also installs headers to
include/${PROJECT_NAME}to avoid include directory search order issues when overriding packages. ros2/ros2#1150