From 8d51dd3f20119cf1190219d37673a0c8799a8218 Mon Sep 17 00:00:00 2001 From: Keita Iwabuchi Date: Tue, 17 Sep 2024 00:31:34 +0900 Subject: [PATCH] Find latest arrow always (#248) Co-authored-by: Keita Iwabuchi --- cmake/FindArrowParquet.cmake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmake/FindArrowParquet.cmake b/cmake/FindArrowParquet.cmake index a40e6cab..8667df9d 100644 --- a/cmake/FindArrowParquet.cmake +++ b/cmake/FindArrowParquet.cmake @@ -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 ()