diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 8398a394e797..b193ea80d4ba 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -798,8 +798,8 @@ if(ARROW_WITH_RAPIDJSON) endif() if(ARROW_USE_XSIMD) - list(APPEND ARROW_SHARED_LINK_LIBS xsimd) - list(APPEND ARROW_STATIC_LINK_LIBS xsimd) + list(APPEND ARROW_SHARED_LINK_LIBS ${ARROW_XSIMD}) + list(APPEND ARROW_STATIC_LINK_LIBS ${ARROW_XSIMD}) endif() add_custom_target(arrow_dependencies) diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake index 39044f956aad..490cb09fe87c 100644 --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake @@ -2292,15 +2292,17 @@ if(ARROW_USE_XSIMD) TRUE) if(xsimd_SOURCE STREQUAL "BUNDLED") - add_library(xsimd INTERFACE IMPORTED) + add_library(arrow::xsimd INTERFACE IMPORTED) if(CMAKE_VERSION VERSION_LESS 3.11) - set_target_properties(xsimd PROPERTIES INTERFACE_INCLUDE_DIRECTORIES - "${XSIMD_INCLUDE_DIR}") + set_target_properties(arrow::xsimd PROPERTIES INTERFACE_INCLUDE_DIRECTORIES + "${XSIMD_INCLUDE_DIR}") else() - target_include_directories(xsimd INTERFACE "${XSIMD_INCLUDE_DIR}") + target_include_directories(arrow::xsimd INTERFACE "${XSIMD_INCLUDE_DIR}") endif() + set(ARROW_XSIMD arrow::xsimd) else() message(STATUS "xsimd found. Headers: ${xsimd_INCLUDE_DIRS}") + set(ARROW_XSIMD xsimd) endif() endif() diff --git a/dev/release/setup-ubuntu.sh b/dev/release/setup-ubuntu.sh index 6a55f25e4bcf..f0cf569aec1b 100755 --- a/dev/release/setup-ubuntu.sh +++ b/dev/release/setup-ubuntu.sh @@ -47,6 +47,7 @@ case ${codename} in python=3 apt-get update -y -q apt-get install -y -q --no-install-recommends \ + libxsimd-dev \ llvm-dev ;; esac