Update vcpkg_download_distfile.cmake (#15435)

Provide proxy setting instruction for more compatibility.
This commit is contained in:
Schwarzer 2021-01-06 04:39:57 +08:00 committed by GitHub
parent 4533b7483d
commit 122ab57da2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,6 +186,10 @@ function(vcpkg_download_distfile VAR)
" Failed to download file.\n"
" If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment\n"
" variables to \"https://user:password@your-proxy-ip-address:port/\".\n"
" \n"
" If error with status 4 (Issue #15434),\n"
" try setting \"http://user:password@your-proxy-ip-address:port/\".\n"
" \n"
" Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues\n")
else()
test_hash("${download_file_path_part}" "downloaded file" "The file may have been corrupted in transit. This can be caused by proxies. If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment variables to \"https://user:password@your-proxy-ip-address:port/\".\n")