diff options
author | Alan W. Irwin <airwin@users.sourceforge.net> | 2014-09-08 19:24:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-08 20:36:35 (GMT) |
commit | 9f49ac3df0f0324d72daa54e2c005c30f4d74414 (patch) | |
tree | 689adbd2d999d1ec0e188aef97a69e46f6c7bed2 /Modules/ExternalProject.cmake | |
parent | 420280f32265eda0e24b2b11ab9d39491d9e8512 (diff) | |
download | CMake-9f49ac3df0f0324d72daa54e2c005c30f4d74414.zip CMake-9f49ac3df0f0324d72daa54e2c005c30f4d74414.tar.gz CMake-9f49ac3df0f0324d72daa54e2c005c30f4d74414.tar.bz2 |
ExternalProject: Avoid infinite loop on file download hash mismatch
When the loop was added by commit v3.0.0-rc1~103^2~3 (ExternalProject:
Reattempt download when verification fails, 2015-01-15), we forgot to
actually increment the loop counter. Add the increment line.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r-- | Modules/ExternalProject.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake index 17cb866..a1c7629 100644 --- a/Modules/ExternalProject.cmake +++ b/Modules/ExternalProject.cmake @@ -607,6 +607,7 @@ Retrying download. file(REMOVE \"\${file}\") execute_process(COMMAND \${CMAKE_COMMAND} -P \"${download_script}\") endif() + math(EXPR attempt \"\${attempt} + 1\") endwhile() if(\${succeeded}) |