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

fix: support both old and new versions of protobuf #79

Merged
merged 18 commits into from
Jul 10, 2023

Conversation

EpsilonPrime
Copy link
Member

@EpsilonPrime EpsilonPrime commented Jul 8, 2023

The version numbering scheme for the protobuf compiler was updated which causes a mismatch warning to appear for versions of cmake less than 3.27. Later versions of protobuf are bundled with their own copy of abseil. Since protobuf always required abseil anyway, this fix also updates the code to rely on that (when available) instead of our own submodule. This should lead to greater consistency (especially with new protobuf code leaning on an experimental logging feature that won't be available in older versions of abseil). If the newer CONFIG-based method of findpackage does not work, we now fall back to the older method of using findpackage. The version of cmake that we require is still 3.20 as 3.27 isn't available in enough locations to advance to that minimum.

The version numbering scheme for the protobuf compiler was updated which causes a mismatch warning to appear for versions of cmake less than 3.27.  Later versions of protobuf are bundled with their own copy of abseil.  Since protobuf always required abseil anyway, this fix also updates the code to rely on that instead of our own submodule.  This should lead to greater consistency (especially with new protobuf code leaning on an experimental logging feature that won't be available in older versions of abseil).  If the newer CONFIG-based method of findpackage does not work, we now fall back to the older method of using findpackage.  The version of cmake that we require is still 3.20 as 3.27 isn't available in enough locations to advance to that minimum.
Copy link
Member

@westonpace westonpace left a comment

Choose a reason for hiding this comment

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

One minor comment and I think we are good here.

CMakeLists.txt Outdated Show resolved Hide resolved
@westonpace westonpace merged commit f4e9fd1 into substrait-io:main Jul 10, 2023
2 checks passed
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