diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-11-03 14:52:02 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-11-03 15:02:53 -0700 |
| commit | 0fb0191f3cb9ba4ea0f0e0675f929e1e599e1461 (patch) | |
| tree | d0ba4e259d4bcd460de9b4b444dbd5e588608477 /scripts | |
| parent | a523aacff8a642d4380e5f53b87404118b5d2a03 (diff) | |
| download | vcpkg-0fb0191f3cb9ba4ea0f0e0675f929e1e599e1461.tar.gz vcpkg-0fb0191f3cb9ba4ea0f0e0675f929e1e599e1461.zip | |
[ports.cmake] Use vcpkg_download_distfile()
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/ports.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/ports.cmake b/scripts/ports.cmake index 8b4d17d80..ef06a4d65 100644 --- a/scripts/ports.cmake +++ b/scripts/ports.cmake @@ -108,10 +108,12 @@ elseif(CMD MATCHES "^CREATE$") message(STATUS "If this is not desired, delete the file and ${NATIVE_VCPKG_ROOT_DIR}\\ports\\${PORT}") else() include(vcpkg_download_distfile) - file(DOWNLOAD ${URL} ${DOWNLOADS}/${FILENAME} STATUS error_code) - if(NOT error_code MATCHES "0;") - message(FATAL_ERROR "Error downloading file: ${error_code}") - endif() + set(_VCPKG_INTERNAL_NO_HASH_CHECK "TRUE") + vcpkg_download_distfile(ARCHIVE + URLS ${URL} + FILENAME ${FILENAME} + ) + set(_VCPKG_INTERNAL_NO_HASH_CHECK "FALSE") endif() file(SHA512 ${DOWNLOADS}/${FILENAME} SHA512) |
