Merge topic 'ExternalProject-download-loop'
9f49ac3d
ExternalProject: Avoid infinite loop on file download hash mismatch
This commit is contained in:
commit
371f06d005
|
@ -711,6 +711,7 @@ Retrying download.
|
||||||
file(REMOVE \"\${file}\")
|
file(REMOVE \"\${file}\")
|
||||||
execute_process(COMMAND \${CMAKE_COMMAND} -P \"${download_script}\")
|
execute_process(COMMAND \${CMAKE_COMMAND} -P \"${download_script}\")
|
||||||
endif()
|
endif()
|
||||||
|
math(EXPR attempt \"\${attempt} + 1\")
|
||||||
endwhile()
|
endwhile()
|
||||||
|
|
||||||
if(\${succeeded})
|
if(\${succeeded})
|
||||||
|
|
Loading…
Reference in New Issue