Use shallow clone for vcpkg (#2006)

This commit is contained in:
m4xw 2022-11-23 13:28:51 +01:00 committed by GitHub
parent 9c162fc0ec
commit 67453dd4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ endmacro()
macro(_install_or_update_vcpkg) macro(_install_or_update_vcpkg)
if(NOT EXISTS ${VCPKG_ROOT}) if(NOT EXISTS ${VCPKG_ROOT})
message(STATUS "Cloning vcpkg in ${VCPKG_ROOT}") message(STATUS "Cloning vcpkg in ${VCPKG_ROOT}")
execute_process(COMMAND git clone https://github.com/Microsoft/vcpkg.git ${VCPKG_ROOT}) execute_process(COMMAND git clone https://github.com/Microsoft/vcpkg.git ${VCPKG_ROOT} --depth 1)
# If a reproducible build is desired (and potentially old libraries are # ok), uncomment the # If a reproducible build is desired (and potentially old libraries are # ok), uncomment the
# following line and pin the vcpkg repository to a specific githash. # following line and pin the vcpkg repository to a specific githash.