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 /Tests/RunCMake/ExternalProject/DownloadInactivityResume.cmake | |
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 'Tests/RunCMake/ExternalProject/DownloadInactivityResume.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalProject/DownloadInactivityResume.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalProject/DownloadInactivityResume.cmake b/Tests/RunCMake/ExternalProject/DownloadInactivityResume.cmake new file mode 100644 index 0000000..d34482d --- /dev/null +++ b/Tests/RunCMake/ExternalProject/DownloadInactivityResume.cmake @@ -0,0 +1,5 @@ +include(ExternalProject) +ExternalProject_Add(MyProj URL ${SERVER_URL} INACTIVITY_TIMEOUT 2 DOWNLOAD_NO_EXTRACT TRUE + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "") |