aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake
diff options
context:
space:
mode:
authorSchwarzer <wangzwnj@126.com>2021-01-06 04:39:57 +0800
committerGitHub <noreply@github.com>2021-01-05 12:39:57 -0800
commit122ab57da258a1c30bfbf61f2a3964062ec23d48 (patch)
treed00a791ed636d9cb2366beb25fe0569f2febf11a /scripts/cmake
parent4533b7483d278679065985a82cd96123c905cc85 (diff)
downloadvcpkg-122ab57da258a1c30bfbf61f2a3964062ec23d48.tar.gz
vcpkg-122ab57da258a1c30bfbf61f2a3964062ec23d48.zip
Update vcpkg_download_distfile.cmake (#15435)
Provide proxy setting instruction for more compatibility.
Diffstat (limited to 'scripts/cmake')
-rw-r--r--scripts/cmake/vcpkg_download_distfile.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_download_distfile.cmake b/scripts/cmake/vcpkg_download_distfile.cmake
index 8f250c67e..11bbac3b4 100644
--- a/scripts/cmake/vcpkg_download_distfile.cmake
+++ b/scripts/cmake/vcpkg_download_distfile.cmake
@@ -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")