Skip to content
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

Export typesupport library in a separate cmake variable #453

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

ivanpauno
Copy link
Member

TL;DR

Same as ros2/rosidl_typesupport_connext@56e609d.
See #284 and ros2/ros2#437 for further reference.

Long story

Generated interfaces' typesupports shouldn't be exported in ${PROJECT_NAME}_LIBRARIES cmake variable.
rosidl_typesupport_connext_* is already handling this correctly.

These generated typesupport libraries are only needed when linking by:

Why now?

When testing ros2/rmw_fastrtps#312, I find two new regressions in the os X job https://ci.ros2.org/job/ci_osx/7989/:

Those tests where failing when loading librmw_dds_common_interfaces__rosidl_typesupport_introspection_cpp.so because librosidl_typesupport_introspection_c.dylib wasn't found.
That library isn't needed at all by the package, and shouldn't be linked against in the first place.

This PR together with ros2/rmw_fastrtps@8b6f556 fix that bug, and I'm only linking against the typesupport I need now.

@ivanpauno
Copy link
Member Author

ivanpauno commented Apr 1, 2020

  • Linux Build Status (unrelated cmake warning)

Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I see where you're going now. I'd like @dirk-thomas to take a look at this as well though.

Copy link
Member

@dirk-thomas dirk-thomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I would suggest to run CI for all platforms.

@ivanpauno
Copy link
Member Author

  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@ivanpauno ivanpauno merged commit 4d83767 into master Apr 1, 2020
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/export-typesupport-separately branch April 1, 2020 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants