Skip to content

Commit ccd0051

Browse files
authored
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 <kou@clear-code.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent 9cbd401 commit ccd0051

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,8 @@ endif()
16831683
if(ARROW_BUILD_TESTS
16841684
OR ARROW_BUILD_BENCHMARKS
16851685
OR ARROW_BUILD_INTEGRATION
1686-
OR ARROW_USE_GLOG)
1686+
OR ARROW_USE_GLOG
1687+
OR (ARROW_FLIGHT_SQL AND ARROW_BUILD_EXAMPLES))
16871688
set(ARROW_NEED_GFLAGS TRUE)
16881689
else()
16891690
set(ARROW_NEED_GFLAGS FALSE)

0 commit comments

Comments
 (0)