@@ -1191,17 +1191,21 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION
11911191 # GH-34094 Older versions of Boost use the deprecated std::unary_function in
11921192 # boost/container_hash/hash.hpp and support for that was removed in clang 16
11931193 set (ARROW_BOOST_REQUIRED_VERSION "1.81" )
1194- elseif (ARROW_BUILD_TESTS)
1195- set (ARROW_BOOST_REQUIRED_VERSION "1.64" )
11961194else ()
1197- set (ARROW_BOOST_REQUIRED_VERSION "1.58" )
1195+ # CentOS 7 uses Boost 1.69.
1196+ set (ARROW_BOOST_REQUIRED_VERSION "1.69" )
11981197endif ()
11991198
12001199set (Boost_USE_MULTITHREADED ON )
12011200if (MSVC AND ARROW_USE_STATIC_CRT)
12021201 set (Boost_USE_STATIC_RUNTIME ON )
12031202endif ()
12041203# CMake 3.25.0 has 1.80 and older versions.
1204+ #
1205+ # We can remove this once we require CMake 3.30.0 or later because we
1206+ # enable CMP0167 "The FindBoost module is removed."
1207+ # https://cmake.org/cmake/help/latest/policy/CMP0167.html with CMake
1208+ # 3.30.0 or later.
12051209set (Boost_ADDITIONAL_VERSIONS
12061210 "1.88.0"
12071211 "1.88"
@@ -1273,7 +1277,7 @@ if(ARROW_USE_BOOST)
12731277 set (Boost_USE_STATIC_LIBS ON )
12741278 endif ()
12751279 if (ARROW_BOOST_REQUIRE_LIBRARY)
1276- set (ARROW_BOOST_COMPONENTS filesystem system )
1280+ set (ARROW_BOOST_COMPONENTS filesystem)
12771281 if (ARROW_FLIGHT_SQL_ODBC AND MSVC )
12781282 list (APPEND ARROW_BOOST_COMPONENTS locale)
12791283 endif ()
@@ -1327,9 +1331,6 @@ if(ARROW_USE_BOOST)
13271331 if (TARGET Boost::filesystem)
13281332 target_link_libraries (arrow::Boost::process INTERFACE Boost::filesystem)
13291333 endif ()
1330- if (TARGET Boost::system )
1331- target_link_libraries (arrow::Boost::process INTERFACE Boost::system )
1332- endif ()
13331334 if (TARGET Boost::headers)
13341335 target_link_libraries (arrow::Boost::process INTERFACE Boost::headers)
13351336 endif ()
0 commit comments