aboutsummaryrefslogtreecommitdiff
path: root/scripts/cmake
diff options
context:
space:
mode:
authoreao197 <eao197@gmail.com>2018-11-12 16:19:10 +0300
committereao197 <eao197@gmail.com>2018-11-12 16:19:10 +0300
commit2d0ce681b068da0b05c3a4a99573dd00a9415eba (patch)
tree85f9572b8edaa611199d6e281af278e56d0094bf /scripts/cmake
parent8c13a782a044edc67f655b5dcb0227e737136e74 (diff)
parent8dc8d0e0c97550a95b764287adbad90b7df7d11d (diff)
downloadvcpkg-2d0ce681b068da0b05c3a4a99573dd00a9415eba.tar.gz
vcpkg-2d0ce681b068da0b05c3a4a99573dd00a9415eba.zip
Merge https://github.com/Microsoft/vcpkg
Diffstat (limited to 'scripts/cmake')
-rw-r--r--scripts/cmake/vcpkg_from_git.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/cmake/vcpkg_from_git.cmake b/scripts/cmake/vcpkg_from_git.cmake
index 5f6930412..2fc66b279 100644
--- a/scripts/cmake/vcpkg_from_git.cmake
+++ b/scripts/cmake/vcpkg_from_git.cmake
@@ -65,9 +65,10 @@ function(vcpkg_from_git)
message(FATAL_ERROR "vcpkg_from_git requires a SHA512 argument. If you do not know the SHA512, add it as 'SHA512 0' and re-run this command.")
endif()
+ # using .tar.gz instead of .zip because the hash of the latter is affected by timezone.
string(REPLACE "/" "-" SANITIZED_REF "${_vdud_REF}")
- set(TEMP_ARCHIVE "${DOWNLOADS}/temp/${PORT}-${SANITIZED_REF}.zip")
- set(ARCHIVE "${DOWNLOADS}/${PORT}-${SANITIZED_REF}.zip")
+ set(TEMP_ARCHIVE "${DOWNLOADS}/temp/${PORT}-${SANITIZED_REF}.tar.gz")
+ set(ARCHIVE "${DOWNLOADS}/${PORT}-${SANITIZED_REF}.tar.gz")
set(TEMP_SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/${SANITIZED_REF}")
function(test_hash FILE_PATH FILE_KIND CUSTOM_ERROR_ADVICE)