Skip to content

Commit

Permalink
Stop using CMAKE_SHARED_LIBRARY_SUFFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Dec 5, 2023
1 parent d68cf41 commit d26798a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/cmake/thirdparty/get_arrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function(find_libarrow_in_python_wheel PYARROW_VERSION)
# `${MINOR_VERSION}${PATCH_VERSION}` is almost always equivalent to "00"),
# the soname is not generated by concatenating the major, minor, and patch versions into a single
# version number soname, just `${MAJOR_VERSION}00`
set(PYARROW_LIB "libarrow.${CMAKE_SHARED_LIBRARY_SUFFIX}.${PYARROW_SO_VER}00")
set(PYARROW_LIB "libarrow.so.${PYARROW_SO_VER}00")

execute_process(
COMMAND "${Python_EXECUTABLE}" -c "import pyarrow; print(pyarrow.get_library_dirs()[0])"
Expand Down Expand Up @@ -451,7 +451,7 @@ if(${Python_FOUND})
OUTPUT_VARIABLE _pyarrow_lib_dir
OUTPUT_STRIP_TRAILING_WHITESPACE
)
file(GLOB _pyarrow_libs "${_pyarrow_lib_dir}/libarrow.${CMAKE_SHARED_LIBRARY_SUFFIX}*")
file(GLOB _pyarrow_libs "${_pyarrow_lib_dir}/libarrow.so*")
list(LENGTH _pyarrow_libs _pyarrow_libs_len)
if(_pyarrow_libs_len GREATER 0)
set(USE_LIBARROW_FROM_PYARROW ON)
Expand Down

0 comments on commit d26798a

Please sign in to comment.