Browse Source

Merge branch 'ExternalProject-download-loop' into release

Brad King 11 years ago
parent
commit
0161761d68
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/ExternalProject.cmake

+ 1 - 0
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})