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

Support vendor-provided pybind11 upstream #8

Merged
merged 1 commit into from Dec 7, 2022

Conversation

cottsay
Copy link
Contributor

@cottsay cottsay commented Dec 7, 2022

This vendor package depends on the pybind11_vendor package. That package will conditionally build pybind11 from source if needed. A package downstream of a vendor package usually needs to find_package the upstream vendor package for the vendored payload to be discoverable by CMake.

Since this package itself is a vendor package, the way we can accomplish this is to find_package pybind11 on the vendored package's behalf and specifically tell it where to look.

This vendor package depends on the pybind11_vendor package. That package
will conditionally build pybind11 from source if needed. A package
downstream of a vendor package usually needs to `find_package` the
upstream vendor package for the vendored payload to be discoverable by
CMake.

Since this package itself is a vendor package, the way we can accomplish
this is to find_package pybind11 on the vendored package's behalf and
specifically tell it where to look.

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay cottsay added the bug Something isn't working label Dec 7, 2022
@cottsay cottsay self-assigned this Dec 7, 2022
@cottsay
Copy link
Contributor Author

cottsay commented Dec 7, 2022

This should address the recent build regression on RHEL: https://build.ros2.org/job/Rbin_rhel_el864__pybind11_json_vendor__rhel_8_x86_64__binary/215/

We'll need to backport this change to all supported distros as well.

Copy link
Member

@youliangtan youliangtan left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. These make total sense!

@orensbruli orensbruli merged commit 756155d into main Dec 7, 2022
@cottsay cottsay deleted the cottsay/pybind11-vendor branch January 12, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants