[vcpkg_download_distfile] allow uppercase SHA512 (#21157)

This commit is contained in:
autoantwort 2021-11-05 22:23:33 +01:00 committed by GitHub
parent f688b48b9d
commit cb1db07258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,8 @@ function(z_vcpkg_download_distfile_test_hash file_path kind error_advice sha512
endif()
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
"\nFile does not have expected hash:\n"
" File path: [ ${file_path} ]\n"