-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
FetchContent
to get vcpkg. (#4484)
[SC-36205](https://app.shortcut.com/tiledb-inc/story/36205/use-fetchcontent-to-acquire-vcpkg) Currently, building TileDB from a GitHub archive fails by default[^1], because we use vcpkg from a submodule, and if we are not on a cloned repository that submodules does not exist. With this PR we change our approach to using CMake's [`FetchContent`](https://cmake.org/cmake/help/latest/module/FetchContent.html) module, and remove the `externals/vcpkg` submodule. [This is what the Azure SDK for C++ does.](https://github.com/Azure/azure-sdk-for-cpp/blob/12407e8bfcb9bc1aa43b253c1d0ec93bf795ae3b/cmake-modules/AzureVcpkg.cmake#L14-L40) This has the disadvantage that by default[^1] the vcpkg repository will be downloaded for every clean configure. It can by mitigated by specifying a `VCPKG_ROOT` environment variable to a local path of the vcpkg repository. [^1]: Unless the vcpkg toolchain file is manually specified. --- TYPE: BUILD DESC: Remove the vcpkg submodule and download it automatically when configuring
- Loading branch information
1 parent
a688248
commit 1f4ed0a
Showing
6 changed files
with
15 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Submodule vcpkg
deleted from
1b4d69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters