diff options
author | Thomas Bernard <tbernard@go-engineering.de> | 2020-08-08 14:28:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-18 13:16:18 (GMT) |
commit | 116b06870d1645df63a4df91bb29d03bdafc5c50 (patch) | |
tree | d349be338211eb981409497f90a504ca9033835b /Modules/ExternalProject-download.cmake.in | |
parent | f24e34975a34c7cad6422a517a59c310d6ea00c9 (diff) | |
download | CMake-116b06870d1645df63a4df91bb29d03bdafc5c50.zip CMake-116b06870d1645df63a4df91bb29d03bdafc5c50.tar.gz CMake-116b06870d1645df63a4df91bb29d03bdafc5c50.tar.bz2 |
ExternalProject: add INACTIVITY_TIMEOUT argument
In order to abort transfers on slow connections the ExternalProject
command support passing the INACTIVITY_TIMEOUT argument.
Fixes: #20992
Diffstat (limited to 'Modules/ExternalProject-download.cmake.in')
-rw-r--r-- | Modules/ExternalProject-download.cmake.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/ExternalProject-download.cmake.in b/Modules/ExternalProject-download.cmake.in index 587e3cc..ff8c659 100644 --- a/Modules/ExternalProject-download.cmake.in +++ b/Modules/ExternalProject-download.cmake.in @@ -105,7 +105,8 @@ set(retry_number 5) message(STATUS "Downloading... dst='@LOCAL@' - timeout='@TIMEOUT_MSG@'" + timeout='@TIMEOUT_MSG@' + inactivity timeout='@INACTIVITY_TIMEOUT_MSG@'" ) set(download_retry_codes 7 6 8 15) set(skip_url_list) @@ -128,6 +129,7 @@ foreach(i RANGE ${retry_number}) "${url}" "@LOCAL@" @SHOW_PROGRESS@ @TIMEOUT_ARGS@ + @INACTIVITY_TIMEOUT_ARGS@ STATUS status LOG log @USERPWD_ARGS@ |