From df8e8fb92790ec7af30eafcf845a3513e25e7e5a Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 14 May 2024 23:34:53 +0000 Subject: [PATCH] Update CMake logic --- cpp/cmake/thirdparty/get_arrow.cmake | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cpp/cmake/thirdparty/get_arrow.cmake b/cpp/cmake/thirdparty/get_arrow.cmake index e9d2f479088..8736d72db69 100644 --- a/cpp/cmake/thirdparty/get_arrow.cmake +++ b/cpp/cmake/thirdparty/get_arrow.cmake @@ -26,13 +26,10 @@ include_guard(GLOBAL) # pyarrow. function(find_libarrow_in_python_wheel PYARROW_VERSION) string(REPLACE "." ";" PYARROW_VER_COMPONENTS "${PYARROW_VERSION}") - list(GET PYARROW_VER_COMPONENTS 0 PYARROW_SO_VER) - # The soname for Arrow libraries is constructed using the major version plus "00". Note that, - # although it may seem like it due to Arrow almost exclusively releasing new major versions (i.e. - # `${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.so.${PYARROW_SO_VER}00") + list(GET PYARROW_VER_COMPONENTS 0 PYARROW_MAJOR_VER) + list(GET PYARROW_VER_COMPONENTS 1 PYARROW_MINOR_VER) + set(PYARROW_LIB "libarrow.so.${PYARROW_MAJOR_VER}${PYARROW_MINOR_VER}") + message("The pyarrow lib is ${PYARROW_LIB}") string( APPEND