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

GH-36860: [C++] Report CMake error when system Protobuf exists but system gRPC doesn't exist #36904

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

kou
Copy link
Member

@kou kou commented Jul 27, 2023

Rationale for this change

We require system gRPC when system Protobuf is found to avoid underlying library (Abseil) mismatch. We should report it as an error on cmake... time instead of build time.

What changes are included in this PR?

Always call find_package_handle_standard_args() to report an error for the case.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@github-actions
Copy link

⚠️ GitHub issue #36860 has been automatically assigned in GitHub to PR creator.

Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Jul 27, 2023
@lidavidm lidavidm merged commit 0f29147 into apache:main Jul 27, 2023
30 of 32 checks passed
@lidavidm lidavidm removed the awaiting merge Awaiting merge label Jul 27, 2023
@kou kou deleted the cpp-find-grpc branch July 28, 2023 00:02
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 0f29147.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about possible false positives for unstable benchmarks that are known to sometimes produce them.

R-JunmingChen pushed a commit to R-JunmingChen/arrow that referenced this pull request Aug 20, 2023
…but system gRPC doesn't exist (apache#36904)

### Rationale for this change

We require system gRPC when system Protobuf is found to avoid underlying library (Abseil) mismatch. We should report it as an error on `cmake...` time instead of build time.

### What changes are included in this PR?

Always call `find_package_handle_standard_args()` to report an error for the case. 

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* Closes: apache#36860

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
loicalleyne pushed a commit to loicalleyne/arrow that referenced this pull request Nov 13, 2023
…but system gRPC doesn't exist (apache#36904)

### Rationale for this change

We require system gRPC when system Protobuf is found to avoid underlying library (Abseil) mismatch. We should report it as an error on `cmake...` time instead of build time.

### What changes are included in this PR?

Always call `find_package_handle_standard_args()` to report an error for the case. 

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* Closes: apache#36860

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
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.

[C++] Build failed on ubuntu-22.04 if system libprotobuf-dev is installed
2 participants