changeset 2153:47daf8022808

added download timeout for os x
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Nov 2016 12:16:44 +0100
parents cbebc5d072b0
children 5d8e6fab98dd
files Resources/CMake/DownloadPackage.cmake
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/DownloadPackage.cmake	Mon Nov 14 15:10:08 2016 +0100
+++ b/Resources/CMake/DownloadPackage.cmake	Wed Nov 16 12:16:44 2016 +0100
@@ -76,7 +76,9 @@
 	message(FATAL_ERROR "CMake is not allowed to download from Internet. Please set the ALLOW_DOWNLOADS option to ON")
       endif()
 
-      file(DOWNLOAD "${Url}" "${TMP_PATH}" SHOW_PROGRESS EXPECTED_MD5 "${MD5}")
+      file(DOWNLOAD "${Url}" "${TMP_PATH}" 
+        SHOW_PROGRESS EXPECTED_MD5 "${MD5}"
+        TIMEOUT 5 INACTIVITY_TIMEOUT 5)
     else()
       message("Using local copy of ${Url}")
     endif()