mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 18:30:11 +08:00
[vcpkg_download_distfile] allow uppercase SHA512 (#21157)
This commit is contained in:
parent
f688b48b9d
commit
cb1db07258
@ -69,7 +69,8 @@ function(z_vcpkg_download_distfile_test_hash file_path kind error_advice sha512
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
file(SHA512 "${file_path}" file_hash)
|
file(SHA512 "${file_path}" file_hash)
|
||||||
if(NOT "${file_hash}" STREQUAL "${sha512}")
|
string(TOLOWER "${sha512}" sha512_lower)
|
||||||
|
if(NOT "${file_hash}" STREQUAL "${sha512_lower}")
|
||||||
message(FATAL_ERROR
|
message(FATAL_ERROR
|
||||||
"\nFile does not have expected hash:\n"
|
"\nFile does not have expected hash:\n"
|
||||||
" File path: [ ${file_path} ]\n"
|
" File path: [ ${file_path} ]\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user