kou opened a new pull request, #45960: URL: https://github.com/apache/arrow/pull/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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org