diff options
author | Brad King <brad.king@kitware.com> | 2017-01-17 11:45:18 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-17 11:45:18 -0500 |
commit | 0ed885f742088b0e68103b87ee36837c37575628 (patch) | |
tree | 29578ee831f8c451b12f43cf37c73c6e84c1dd25 | |
parent | cab8f26211051a24ceb0e512660f022c9960f241 (diff) | |
download | cmake-0ed885f742088b0e68103b87ee36837c37575628.tar.gz |
ExternalProject: Restore case-insensitive download hash check
Refactoring in commit v3.6.0-rc1~47^2 (ExternalProject: Re-implement
download logic as a dedicated script, 2016-05-19) accidentally made the
download hash check case-sensitive. The hash comparison is done in hex
strings, so restore case-insensitive comparison since the case of the
hex digits does not matter.
Fixes: #16568
-rw-r--r-- | Modules/ExternalProject.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index a0f731c99f..458c114841 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -889,7 +889,7 @@ function(_ep_write_downloadfile_script script_filename REMOTE LOCAL timeout no_p if("${hash}" MATCHES "${_ep_hash_regex}") set(ALGO "${CMAKE_MATCH_1}") - set(EXPECT_VALUE "${CMAKE_MATCH_2}") + string(TOLOWER "${CMAKE_MATCH_2}" EXPECT_VALUE) else() set(ALGO "") set(EXPECT_VALUE "") |