Skip to content

Commit

Permalink
Ensure variable is always set
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Dec 5, 2023
1 parent 7c7ea76 commit d68cf41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/cmake/thirdparty/get_arrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit d68cf41

Please sign in to comment.