diff options
author | Brad King <brad.king@kitware.com> | 2012-09-19 15:28:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-19 15:31:36 (GMT) |
commit | 95a00116044ed52d92c20a467b9266476eb56632 (patch) | |
tree | d2770725839951940c45e21fed4cf4c76e4fcc79 /Modules/ExternalProject.cmake | |
parent | d407dcdbc824688510837ec85bb2e3c85cf096bd (diff) | |
download | CMake-95a00116044ed52d92c20a467b9266476eb56632.zip CMake-95a00116044ed52d92c20a467b9266476eb56632.tar.gz CMake-95a00116044ed52d92c20a467b9266476eb56632.tar.bz2 |
file(DOWNLOAD): Change EXPECTED_HASH to take ALGO=value
Make the EXPECTED_HASH option take only a single value instead of two to
avoid handling sub-keyword arguments. This is also consistent with
URL_HASH in ExternalProject.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-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 3923685..57b8aa5 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -411,7 +411,7 @@ function(_ep_write_downloadfile_script script_filename remote local timeout hash endif() if("${hash}" MATCHES "${_ep_hash_regex}") - set(hash_args EXPECTED_HASH ${CMAKE_MATCH_1} ${CMAKE_MATCH_2}) + set(hash_args EXPECTED_HASH ${CMAKE_MATCH_1}=${CMAKE_MATCH_2}) else() set(hash_args "# no EXPECTED_HASH") endif() |