The latest version of this document lives in the vcpkg repo.
Download and extract a project from git
vcpkg_from_git( OUT_SOURCE_PATH <SOURCE_PATH> URL <https://android.googlesource.com/platform/external/fdlibm> REF <59f7335e4d...> [HEAD_REF <ref>] [PATCHES <patch1.patch> <patch2.patch>...] )
Specifies the out-variable that will contain the extracted location.
This should be set to
SOURCE_PATH by convention.
The url of the git repository.
The git sha of the commit to download.
The git branch to fetch in non-HEAD mode. After this is fetched,
REF is checked out. This is useful in cases where the git server
does not allow checking out non-advertised objects.
The git branch to use when the package is requested to be built from the latest sources.
A list of patches to be applied to the extracted sources.
Relative paths are based on the port directory.
URL must be specified.