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

[melodic] pass ROS_BUILD_SHARED_LIBS to use visibility control properly. #89

Merged
merged 3 commits into from
May 28, 2020

Conversation

seanyen
Copy link

@seanyen seanyen commented Mar 24, 2020

Many ROS packages adopt this visibility control header to make the packages Windows-compatible. And the visibility control is conditionally guarded by ROS_BUILD_SHARED_LIBS which is defined by catkin in CMake file.

However, for sip module, it is running its own Makefile generated by sip, and this important definition (ROS_BUILD_SHARED_LIBS) is not automatically inherited. In such case, when it is building the sip module and ROS visibility control headers are in use there, it doesn't use the expected visibility control code path.

@seanyen
Copy link
Author

seanyen commented Mar 24, 2020

@dirk-thomas This is ready for review and merge. Thanks!

@seanyen
Copy link
Author

seanyen commented Apr 9, 2020

@dirk-thomas Friendly ping.

@seanyen
Copy link
Author

seanyen commented May 12, 2020

@dirk-thomas Following up. Any feedback would be appreciated.

cmake/sip_helper.cmake Outdated Show resolved Hide resolved
@dirk-thomas
Copy link
Contributor

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 3ccd1f2 into ros-visualization:melodic-devel May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants