[ 
https://issues.apache.org/jira/browse/ARROW-11580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286729#comment-17286729
 ] 

Ian Cook commented on ARROW-11580:
----------------------------------

To find where vcpkg has installed packages:
 * First look in the project in {{cpp/vcpkg_installed}} 
 * If not found there, look in {{$VCPKG_ROOT/installed}}

Within that {{installed}} directory, there will be a triplet subdirectory. If 
the environment variable CMake option {{VCPKG_DEFAULT_TRIPLET}} is set, then 
look for a subdirectory of the {{installed}} directory with that name. If that 
exists, set that name to the triplet. If it does not exist, error. If that env 
var/CMake option is _not_ set, then assert that there is one and only one 
subdirectory within the {{installed}} directory that is not named {{vcpkg}}, 
and if so, set the triplet to the name of that subdirectory. Set the value of 
the CMake variable {{VCPKG_TARGET_TRIPLET}} to this triplet, and set the value 
of the CMake variable {{_VCPKG_INSTALLED_DIR}} to the {{installed}} directory 
path.

Set the value of the CMake variable {{DARROW_PACKAGE_PREFIX}} to 
{{_VCPKG_INSTALLED_DIR/}}{{VCPKG_TARGET_TRIPLET}}{{}}.

If the {{installed}} directory is within the project, then set 
{{DVCPKG_MANIFEST_MODE}} to {{ON}}, otherwise set it to {{OFF}}.

> [C++] Add CMake option ARROW_DEPENDENCY_SOURCE=VCPKG
> ----------------------------------------------------
>
>                 Key: ARROW-11580
>                 URL: https://issues.apache.org/jira/browse/ARROW-11580
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ian Cook
>            Assignee: Ian Cook
>            Priority: Major
>
> ARROW-11340 enables the use of vcpkg to install Arrow C++ build dependencies, 
> but we should consider making this more straightforward by adding a CMake 
> option {{ARROW_DEPENDENCY_SOURCE=VCPKG}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to