summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-09 15:23:30 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-09-09 15:23:30 (GMT)
commit371f06d005692aa6e0c48a84fe08c5dfddb22c59 (patch)
tree5dee1dba81748ceb1fc8882a0aaabbc1c8daa112 /Modules/ExternalProject.cmake
parenta06e49cf108488a30c0bdb168ada7653a3a737e0 (diff)
parent9f49ac3df0f0324d72daa54e2c005c30f4d74414 (diff)
downloadCMake-371f06d005692aa6e0c48a84fe08c5dfddb22c59.zip
CMake-371f06d005692aa6e0c48a84fe08c5dfddb22c59.tar.gz
CMake-371f06d005692aa6e0c48a84fe08c5dfddb22c59.tar.bz2
Merge topic 'ExternalProject-download-loop'
9f49ac3d ExternalProject: Avoid infinite loop on file download hash mismatch
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 218066c..b5d36ce 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -711,6 +711,7 @@ Retrying download.
file(REMOVE \"\${file}\")
execute_process(COMMAND \${CMAKE_COMMAND} -P \"${download_script}\")
endif()
+ math(EXPR attempt \"\${attempt} + 1\")
endwhile()
if(\${succeeded})