-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-45959: [C++][CMake] Fix Protobuf dependency in Arrow::arrow_static #45960
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
Conversation
…static If Protobuf is used only for Flight, Arrow::arrow_static must not depend on Protobuf. Instead, ArrowFlight::arrow_flight_static must depend on Protobuf.
|
@github-actions crossbow submit -g cpp |
|
|
|
@anku94 Could you try this? |
|
Revision: e778459 Submitted crossbow builds: ursacomputing/crossbow @ actions-17b26eac16 |
raulcd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kou
|
The appveyor failure is unrelated (it also happens on main). I've opened: |
|
After merging your PR, Conbench analyzed the 0 benchmarking runs that have been run so far on merge-commit 3c63f37. None of the specified runs were found on the Conbench server. The full Conbench report has more details. |
…static (apache#45960) ### Rationale for this change If Protobuf is used only for Flight, Arrow::arrow_static must not depend on Protobuf. Instead, ArrowFlight::arrow_flight_static must depend on Protobuf. ### What changes are included in this PR? Use `ARROW_PROTOBUF_ARROW_CMAKE_PACKAGE_NAME` instead of `ARROW_WITH_PROTOBUF` to detect which CMake target must depend on Protobuf. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: apache#45959 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
If Protobuf is used only for Flight, Arrow::arrow_static must not depend on Protobuf. Instead, ArrowFlight::arrow_flight_static must depend on Protobuf.
What changes are included in this PR?
Use
ARROW_PROTOBUF_ARROW_CMAKE_PACKAGE_NAMEinstead ofARROW_WITH_PROTOBUFto detect which CMake target must depend on Protobuf.Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.