cmake_minimum_required(VERSION 3.7.2) project(arrow-download NONE) # Makes GIT_SUBMODULES "" in ExternalProject_Add skip initializing submodules cmake_policy(SET CMP0097 NEW) include(ExternalProject) ExternalProject_Add(apachearrow GIT_REPOSITORY https://github.com/apache/arrow.git GIT_TAG apache-arrow-18.1.0 GIT_SUBMODULES "" GIT_SHALLOW TRUE SOURCE_DIR "${CMAKE_BINARY_DIR}/arrow-src" BINARY_DIR "${CMAKE_BINARY_DIR}/arrow-build" SOURCE_SUBDIR "cpp" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" TEST_COMMAND "" # This patch is to work around https://github.com/apache/arrow/issues/44384 # It can be removed when a version of Arrow is released with https://github.com/apache/arrow/pull/44385 PATCH_COMMAND "${CMAKE_COMMAND}" -E chdir git apply "${CMAKE_SOURCE_DIR}/patches/fix_arrow_libtool.patch" && "${CMAKE_COMMAND}" -E chdir git apply "${CMAKE_SOURCE_DIR}/patches/arrow_strptime.patch" )