Mercurial > hg > orthanc
comparison Resources/CMake/DownloadPackage.cmake @ 2891:2b25716c442e Orthanc-1.4.2-fix-build
increased DownloadPackage timeout to 300sec
author | am@osimis.io |
---|---|
date | Mon, 15 Oct 2018 16:02:53 +0200 |
parents | 3eda46f91834 |
children |
comparison
equal
deleted
inserted
replaced
2833:afb581263e1d | 2891:2b25716c442e |
---|---|
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 file(DOWNLOAD "${Url}" "${TMP_PATH}" | 79 file(DOWNLOAD "${Url}" "${TMP_PATH}" |
80 SHOW_PROGRESS EXPECTED_MD5 "${MD5}" | 80 SHOW_PROGRESS EXPECTED_MD5 "${MD5}" |
81 TIMEOUT 60 INACTIVITY_TIMEOUT 60) | 81 TIMEOUT 300 INACTIVITY_TIMEOUT 60) |
82 else() | 82 else() |
83 message("Using local copy of ${Url}") | 83 message("Using local copy of ${Url}") |
84 | 84 |
85 file(MD5 ${TMP_PATH} ActualMD5) | 85 file(MD5 ${TMP_PATH} ActualMD5) |
86 if (NOT "${ActualMD5}" STREQUAL "${MD5}") | 86 if (NOT "${ActualMD5}" STREQUAL "${MD5}") |