-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[protobuf] Fix the default proto file path #15246
Conversation
Hi @sighingnow, can you test this PR? Thanks. |
Thanks for fixing that so quickly, will test it ASAP. |
@sighingnow Does this work? |
Sorry for the delay, I will test it tonight after I back to home. |
Confirm fixed. @JackBoosY Thanks for your work! Now this PR should be mergeable. |
Could we get this one merged? Then we could submit our package port to vcpkg. |
Ping @BillyONeal for merge this PR. |
Thanks for your help! |
Because the vcpkg policy is that all tools should be installed in the tools directory, this is inconsistent with the default installation path of protobuf itself(bin), which leads to the problem of protobuf automatically finding the include path.
Fix this.
See source code:
https://github.com/protocolbuffers/protobuf/blob/64dd751868d633421563e53e68da831a0a02c923/src/google/protobuf/compiler/command_line_interface.cc#L256-L272
fixes #15217.
Note: already tested the executable usage manually.