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.
This commit is contained in:
Alan W. Irwin 2014-09-08 12:24:17 -07:00 committed by Brad King
parent 420280f322
commit 9f49ac3df0
1 changed files with 1 additions and 0 deletions

View File

@ -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})