comparison Resources/CMake/DownloadPackage.cmake @ 2890:f5ce33d3295c

increased DownloadPackage Timeout since we've seen that 60sec is not always enough
author am@osimis.io
date Mon, 15 Oct 2018 15:33:40 +0200
parents 706da802f1e3
children 5d78df37c62f
comparison
equal deleted inserted replaced
2889:f3c1eda54e47 2890:f5ce33d3295c
76 message(FATAL_ERROR "CMake is not allowed to download from Internet. Please set the ALLOW_DOWNLOADS option to ON") 76 message(FATAL_ERROR "CMake is not allowed to download from Internet. Please set the ALLOW_DOWNLOADS option to ON")
77 endif() 77 endif()
78 78
79 if ("${MD5}" STREQUAL "no-check") 79 if ("${MD5}" STREQUAL "no-check")
80 message(WARNING "Not checking the MD5 of: ${Url}") 80 message(WARNING "Not checking the MD5 of: ${Url}")
81 file(DOWNLOAD "${Url}" "${TMP_PATH}" SHOW_PROGRESS TIMEOUT 60 INACTIVITY_TIMEOUT 60) 81 file(DOWNLOAD "${Url}" "${TMP_PATH}" SHOW_PROGRESS TIMEOUT 300 INACTIVITY_TIMEOUT 60)
82 else() 82 else()
83 file(DOWNLOAD "${Url}" "${TMP_PATH}" SHOW_PROGRESS TIMEOUT 60 INACTIVITY_TIMEOUT 60 EXPECTED_MD5 "${MD5}") 83 file(DOWNLOAD "${Url}" "${TMP_PATH}" SHOW_PROGRESS TIMEOUT 300 INACTIVITY_TIMEOUT 60 EXPECTED_MD5 "${MD5}")
84 endif() 84 endif()
85 85
86 else() 86 else()
87 message("Using local copy of ${Url}") 87 message("Using local copy of ${Url}")
88 88