From d68cf41349594aa96f8fd9c993f0aa7d658ed6fb Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 5 Dec 2023 18:46:30 +0000 Subject: [PATCH] Ensure variable is always set --- cpp/cmake/thirdparty/get_arrow.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpp/cmake/thirdparty/get_arrow.cmake b/cpp/cmake/thirdparty/get_arrow.cmake index 744932460e5..6d889f9f181 100644 --- a/cpp/cmake/thirdparty/get_arrow.cmake +++ b/cpp/cmake/thirdparty/get_arrow.cmake @@ -437,6 +437,7 @@ endif() # wheels we must use the library in the pyarrow wheel, so it's best to simply be consistent. find_package(Python 3.9 COMPONENTS Interpreter) +set(USE_LIBARROW_FROM_PYARROW OFF) if(${Python_FOUND}) execute_process( COMMAND "${Python_EXECUTABLE}" -c @@ -454,8 +455,6 @@ if(${Python_FOUND}) list(LENGTH _pyarrow_libs _pyarrow_libs_len) if(_pyarrow_libs_len GREATER 0) set(USE_LIBARROW_FROM_PYARROW ON) - else() - set(USE_LIBARROW_FROM_PYARROW OFF) endif() endif() endif()