You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "bkietz (via GitHub)" <gi...@apache.org> on 2024/08/13 21:28:50 UTC
Re: [I] How to build Apache Arrow C++ as dependency in CMake through CPM [arrow]
bkietz commented on issue #43668:
URL: https://github.com/apache/arrow/issues/43668#issuecomment-2287169393
Hi! Our options resolution (see `DefineOptions.cmake`) isn't currently equipped to deal with CPM and our dependency management isn't currently aware of CPM (see `ThirdpartyToolchain.cmake::resolve_dependency()`). To get a minimal build working, pass some cmake options explicitly:
```cmake
cmake_minimum_required(VERSION 3.30)
project(arrow_with_CPM)
include(cmake/CPM.cmake)
cpmaddpackage(
NAME ApacheArrow
GITHUB_REPOSITORY apache/arrow
GIT_TAG apache-arrow-17.0.0
SOURCE_SUBDIR "./cpp" # this is relative to the top directoy of the cloned repository
OPTIONS
"ARROW_DEFINE_OPTIONS ON"
"ARROW_SIMD_LEVEL NONE"
"ARROW_RUNTIME_SIMD_LEVEL NONE"
)
```
In the longer term, it'd be neat to support acquiring our own dependencies with CMake
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org