Skip to content

Commit 2a465b9

Browse files
committed
Require ArrowS3 for Arrow C++ >= 26.0.0
1 parent c6506d1 commit 2a465b9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎dataset/CMakeLists.txt‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
find_package(ArrowDataset REQUIRED)
1919
find_package(ArrowSubstrait REQUIRED)
20-
# S3 support lives in its own library in recent Arrow C++ (apache/arrow GH-50194). Older
21-
# versions bundle it into libarrow and don't provide the ArrowS3 package.
22-
find_package(ArrowS3 QUIET)
20+
# S3 support lives in its own library since Arrow C++ 26.0.0 (apache/arrow GH-50194).
21+
# Older versions bundle it into libarrow and don't provide the ArrowS3 package.
22+
if(ARROW_VERSION VERSION_GREATER_EQUAL 26.0.0)
23+
find_package(ArrowS3 REQUIRED)
24+
endif()
2325

2426
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
2527
${JNI_INCLUDE_DIRS} ${JNI_HEADERS_DIR})

0 commit comments

Comments
 (0)