FeatureRequest: Allow URL_HASH to be provided multiple times to FetchContent_Declare and ExternalProject_Add
I have a package with multiple hashes available for the target URL.
I wish to have CMake verify each of these hashs.
Calling
FetchContent_Declare(${FUNC_ARGS_ARTIFACT_PKG_NAME}
URL "..."
URL_HASH "SHA1=${PACKAGE_SHA1}"
URL_HASH "SHA256=${PACKAGE_SHA2}"
HTTP_USERNAME "..."
HTTP_PASSWORD "..."
)
produces the configuration error
CMake Error at cmake/3.24.0/share/cmake-3.24/Modules/ExternalProject.cmake:2921 (message):
URL_HASH is set to
SHA1=sadfasdf;SHA256=asdfasdf
but must be ALGO=value where ALGO is
MD5|SHA1|SHA224|SHA256|SHA384|SHA512|SHA3_224|SHA3_256|SHA3_384|SHA3_512
and value is a hex string.