Skip to content

Commit

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

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
kou authored and zagto committed Oct 7, 2022
1 parent fb14557 commit 87b5e58
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
@@ -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)

0 comments on commit 87b5e58

Please sign in to comment.