From cb1db0725892e50564346c72b47bdc64512a5c97 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Fri, 5 Nov 2021 22:23:33 +0100 Subject: [PATCH] [vcpkg_download_distfile] allow uppercase SHA512 (#21157) --- scripts/cmake/vcpkg_download_distfile.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cmake/vcpkg_download_distfile.cmake b/scripts/cmake/vcpkg_download_distfile.cmake index 08a039c0518..3e0ae4dbbe2 100644 --- a/scripts/cmake/vcpkg_download_distfile.cmake +++ b/scripts/cmake/vcpkg_download_distfile.cmake @@ -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"