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

Added cmake abseil include guard #9928

Merged
merged 1 commit into from
May 9, 2022

Conversation

veblush
Copy link
Contributor

@veblush veblush commented May 6, 2022

This fix is needed to prevent gRPC from having duplicate definitions of abseil targets. Once protobuf started depending on Abseil (by #9793), both gRPC and Protobuf are trying to include abseil project, resulting in calling add_subdirectory toward abseil-cpp throwing a bunch of errors.

To avoid this error, an easy solution is to introduce an inclusion guard, we can think of a better solution in future but this is good enough as a short-term solution. The same fix will be added to gRPC as well.

@veblush
Copy link
Contributor Author

veblush commented May 6, 2022

@mkruskal-google

@deannagarcia deannagarcia merged commit 32d99bb into protocolbuffers:main May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants