Skip to content

Commit

Permalink
GH-41617: [C++][CMake] Fix ARROW_USE_BOOST detect condition (#41622)
Browse files Browse the repository at this point in the history
### Rationale for this change

We also need Boost when ARROW_FLIGHT and ARROW_TESTING are true.

### What changes are included in this PR?

Add missing the condition.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: #41617

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored May 12, 2024
1 parent 1e3772c commit a0f9d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ endif()
# - S3FS and Flight benchmarks need Boost at runtime.
if(ARROW_BUILD_INTEGRATION
OR ARROW_BUILD_TESTS
OR (ARROW_FLIGHT AND ARROW_BUILD_BENCHMARKS)
OR (ARROW_FLIGHT AND (ARROW_TESTING OR ARROW_BUILD_BENCHMARKS))
OR (ARROW_S3 AND ARROW_BUILD_BENCHMARKS))
set(ARROW_USE_BOOST TRUE)
set(ARROW_BOOST_REQUIRE_LIBRARY TRUE)
Expand Down

0 comments on commit a0f9d2e

Please sign in to comment.