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

Ian Cook edited comment on ARROW-11580 at 2/19/21, 5:13 AM:
------------------------------------------------------------

To find where vcpkg has installed packages:
 * First look in {{$ARROW_SOURCE_DIR/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.

If {{VCPKG_MANIFEST_MODE}} is {{OFF}}, then do not look for packages in 
{{$ARROW_SOURCE_DIR/vcpkg_installed}} .

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


was (Author: icook):
To find where vcpkg has installed packages:
 * First look in the project in {{$ARROW_SOURCE_DIR/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.

If {{VCPKG_MANIFEST_MODE}} is {{OFF}}, then do not look for packages in 
{{$ARROW_SOURCE_DIR/vcpkg_installed}} .

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

> [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