Skip to content

Commit

Permalink
ARROW-16993: [C++] Don't find Boost components if they aren't needed (#…
Browse files Browse the repository at this point in the history
…13846)

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou authored Aug 16, 2022
1 parent ee3a8d8 commit 102b9bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1019,12 +1019,16 @@ if(ARROW_USE_BOOST)
# Find static boost headers and libs
set(Boost_USE_STATIC_LIBS ON)
endif()
if(ARROW_BOOST_REQUIRE_LIBRARY)
set(ARROW_BOOST_COMPONENTS system filesystem)
else()
set(ARROW_BOOST_COMPONENTS)
endif()
resolve_dependency(Boost
REQUIRED_VERSION
${ARROW_BOOST_REQUIRED_VERSION}
COMPONENTS
system
filesystem
${ARROW_BOOST_COMPONENTS}
IS_RUNTIME_DEPENDENCY
# libarrow.so doesn't depend on libboost*.
FALSE)
Expand Down

0 comments on commit 102b9bd

Please sign in to comment.