Skip to content

Commit

Permalink
Find latest arrow always (#248)
Browse files Browse the repository at this point in the history
Co-authored-by: Keita Iwabuchi <[email protected]>
  • Loading branch information
KIwabuchi and Keita Iwabuchi authored Sep 16, 2024
1 parent 0f83660 commit 8d51dd3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmake/FindArrowParquet.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Find Arrow and Parquet using find_package
function(find_arrow_parquet_config)
# Find Arrow >- 8.0
foreach (VERSION 16.0 15.0 14.0 13.0 12.0 11.0 10.0 9.0 8.0)
find_package(Arrow ${VERSION} QUIET)
# Find Arrow >= 8.0.
# Start major version from 100 so that we do not have to update
# this code every time Arrow releases a major version.
foreach (MAJOR_VERSION RANGE 100 8 -1)
find_package(Arrow "${MAJOR_VERSION}.0" QUIET)
if (Arrow_FOUND)
break()
endif ()
Expand Down

0 comments on commit 8d51dd3

Please sign in to comment.