[
https://issues.apache.org/jira/browse/ARROW-4611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661634#comment-17661634
]
Rok Mihevc commented on ARROW-4611:
-----------------------------------
This issue has been migrated to [issue
#21150|https://github.com/apache/arrow/issues/21150] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [C++] Rework CMake third-party logic
> ------------------------------------
>
> Key: ARROW-4611
> URL: https://issues.apache.org/jira/browse/ARROW-4611
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++, Packaging
> Reporter: Uwe Korn
> Assignee: Uwe Korn
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.13.0
>
> Time Spent: 10h 10m
> Remaining Estimate: 0h
>
> Instead of the current approach we are taking with the {{*_HOME}} variables,
> we should use more CMake features and also give users of Arrow a more
> high-level control. This is going to be a rather lengthy issue with a lot of
> subtasks.
> * Let the user decide on the top-level how dependencies should be handled.
> At the moment I can think of the following modes:
> ** AUTO: Guess the packaging system we're running in, use this where
> possible, otherwise build the dependencies through the {{ExternalProject}}
> logic.
> ** BUNDLED: Don't use any dependencies, build them all through
> {{ExternalProject}}
> ** SYSTEM: Use CMake's {{find_package}} and {{find_library}} without any
> custom paths. If packages are on non-default locations, let the user indicate
> it from the outside using the {{*_ROOT}} variables.
> ** CONDA: Same as SYSTEM but set all {{*_ROOT}} variables to
> {{ENV\{CONDA_PREFIX\}}}.
> ** BREW: This uses SYSTEM but asks {{brew}} for some dependencies for their
> installation prefix.
> * prefer dynamic linkage where possible
> * Use {{pkg-config}} and {{*Targets.cmake}} files in projects that publish
> these
> * Ensure that the necessary integration tests are in place (Fedora, Debian,
> Ubuntu, Alpine)
> * Integration tests that Arrow's {{*Targets.cmake}} and {{arrow.pc}} work.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)