-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
CMake: Replace deprecated protobuf_generate_cpp() #19
Conversation
Relevant: https://gitlab.kitware.com/cmake/cmake/-/issues/21228 It seems like there should be a "cleaner" way of solving this but this probably involves digging around Protobuf and cmake sources and checking whether the respective behaviors are version-dependent. So I guess this simple fix will do. @davidebeatrici opinion? |
We should switch to |
I'm closing this PR then? |
Well, it works as a workaround but it would be great to switch directly to the new function. |
Will this do? :) |
Why downloading on windows is failing(( |
Sorry for the delay, see microsoft/vcpkg#36502. We can ignore the failure for the time being, as I can test the PR on Windows myself. |
Fixed in #22. |
Thank you very much for your contribution! |
It’s a pleasure 😇 |
I was getting an error when building (manjaro with cmake 3.28.1):
Unknown CMake command "protobuf_generate_cpp"
Found a solution here: https://stackoverflow.com/a/56896032/13580789
Udp: switched to protobuf_generate() as discussed