-
Notifications
You must be signed in to change notification settings - Fork 31
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 find-protobuf using standard CMake #363
Conversation
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Unfortunatly at the moment the |
I think we could consider deprecating it on the |
Sounds good. We can start with the other PR's first. |
The problem that I see is that if you use find_package(Protobuf MODULE) we break the compilation against protobuf >= 23, while if you use find_package(Protobuf CONFIG) we break the compilation of autotools-compiled Protobuf (that includes the Protobuf Debian packages in almost all Ubuntu distros). |
Hmm, yea. Thanks, it seems you've spent a bunch of time on this. It's unfortunate some errors are during linking, the major distros are building with autotools, the protobuf maintainers don't seem bothered they broke CMake support on major platforms, even if we patch CMake's find module today, it will only help if you have newer than CMake 3.28. Things to figure out:
Ideas:
|
The problem is that at that point if you have boilerplate you may want to avoid duplicating it across gz-* repos, and that is thea reason why |
Would you recommend trying to modify FindGzProtobuf then to do the following?
|
If I am not wrong, |
Closing for now to reduce the noise. It can be revisited when CMake+Protobuf work out of the box nicely again. |
Summary
This removes the custom FindGzProtobuf since one is already supplied by CMake and we have new enough CMake available to use it. Relates to #9 (comment)
A few more PR's are going to be pushed up too.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.