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 grpc static in Windows with shared protobuf dependency #26556

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

memsharded
Copy link
Member

Summary

Changes to recipe: grpc

Motivation

Close conan-io/conan#17703
When grpc has shared dependencies in Windows, the grpc_cpp_plugin execution can fail. The recipe already had provisioned for Linux scenario and LD_LIBRARY_PATH, but not for Windows PATH

Details

It is necessary to add cmake/3.25 to be able to correctly inject PATHs in cmake -E env --modify syntax
Also, small removals of Conan 1 legacy dead code, and minor refactors to reduce the recipe.

I have tested manually in Windows and Linux the static-shared scenario

conan create . --version=1.54.3 -o "*:shared=True" -o "&:shared=False"

@memsharded memsharded requested a review from jcar87 February 7, 2025 12:02
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.

[question] What does env_info do in Conan2
3 participants