mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 03:19:00 +08:00
Update vcpkg_download_distfile.cmake (#15435)
Provide proxy setting instruction for more compatibility.
This commit is contained in:
parent
4533b7483d
commit
122ab57da2
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user