aosterthun commented on issue #43668:
URL: https://github.com/apache/arrow/issues/43668#issuecomment-2288490634

   > 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
   
   Thank you, this works seamlessly for the most part. I only had to change the 
target names from `Parquet::parquet_shared` and `Arrow::arrow_shared` to 
`parquet_shared` and `arrow_shared` when linking them against my executable. 
   
   As already mentioned it would be convenient to have more usable default 
options, but for now I am happy this works at all!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to