This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new ccd0051369 GH-49541: [C++] `ARROW_FLIGHT_SQL=ON` and
`ARROW_BUILD_EXAMPLES=ON` need gflags (#49542)
ccd0051369 is described below
commit ccd0051369f3ca43eccd02a73a02fca710f4adff
Author: Sutou Kouhei <[email protected]>
AuthorDate: Wed Mar 18 19:12:09 2026 +0900
GH-49541: [C++] `ARROW_FLIGHT_SQL=ON` and `ARROW_BUILD_EXAMPLES=ON` need
gflags (#49542)
### Rationale for this change
`flight-sql-test-server` needs gflags:
https://github.com/apache/arrow/blob/6dfef94283d02c6a584640ed7098a73d385814a4/cpp/src/arrow/flight/sql/CMakeLists.txt#L166-L168
### What changes are included in this PR?
Require gflags with `ARROW_FLIGHT_SQL=ON` and `ARROW_BUILD_EXAMPLES=ON`.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
Yes.
* GitHub Issue: #49541
Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
---
cpp/cmake_modules/ThirdpartyToolchain.cmake | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake
b/cpp/cmake_modules/ThirdpartyToolchain.cmake
index 2da5c830d1..8742bcb55d 100644
--- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
@@ -1683,7 +1683,8 @@ endif()
if(ARROW_BUILD_TESTS
OR ARROW_BUILD_BENCHMARKS
OR ARROW_BUILD_INTEGRATION
- OR ARROW_USE_GLOG)
+ OR ARROW_USE_GLOG
+ OR (ARROW_FLIGHT_SQL AND ARROW_BUILD_EXAMPLES))
set(ARROW_NEED_GFLAGS TRUE)
else()
set(ARROW_NEED_GFLAGS FALSE)