Skip to content

Commit 102b9bd

Browse files
authored
ARROW-16993: [C++] Don't find Boost components if they aren't needed (#13846)
Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent ee3a8d8 commit 102b9bd

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎cpp/cmake_modules/ThirdpartyToolchain.cmake‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,12 +1019,16 @@ if(ARROW_USE_BOOST)
10191019
# Find static boost headers and libs
10201020
set(Boost_USE_STATIC_LIBS ON)
10211021
endif()
1022+
if(ARROW_BOOST_REQUIRE_LIBRARY)
1023+
set(ARROW_BOOST_COMPONENTS system filesystem)
1024+
else()
1025+
set(ARROW_BOOST_COMPONENTS)
1026+
endif()
10221027
resolve_dependency(Boost
10231028
REQUIRED_VERSION
10241029
${ARROW_BOOST_REQUIRED_VERSION}
10251030
COMPONENTS
1026-
system
1027-
filesystem
1031+
${ARROW_BOOST_COMPONENTS}
10281032
IS_RUNTIME_DEPENDENCY
10291033
# libarrow.so doesn't depend on libboost*.
10301034
FALSE)

0 commit comments

Comments
 (0)