Mercurial > hg > orthanc
comparison OrthancFramework/Resources/CMake/DownloadOrthancFramework.cmake @ 5271:c5f243ad7103
switch third party downloads to UCLouvain which provides faster network
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Apr 2023 16:39:16 +0200 |
parents | 0ea402b4d901 |
children | b9456dfde58a |
comparison
equal
deleted
inserted
replaced
5269:c3f425e78539 | 5271:c5f243ad7103 |
---|---|
311 if (DEFINED ORTHANC_FRAMEWORK_URL) | 311 if (DEFINED ORTHANC_FRAMEWORK_URL) |
312 string(REGEX REPLACE "^.*/" "" ORTHANC_FRAMEMORK_FILENAME "${ORTHANC_FRAMEWORK_URL}") | 312 string(REGEX REPLACE "^.*/" "" ORTHANC_FRAMEMORK_FILENAME "${ORTHANC_FRAMEWORK_URL}") |
313 else() | 313 else() |
314 # Default case: Download from the official Web site | 314 # Default case: Download from the official Web site |
315 set(ORTHANC_FRAMEMORK_FILENAME Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz) | 315 set(ORTHANC_FRAMEMORK_FILENAME Orthanc-${ORTHANC_FRAMEWORK_VERSION}.tar.gz) |
316 set(ORTHANC_FRAMEWORK_URL "http://orthanc.osimis.io/ThirdPartyDownloads/orthanc-framework/${ORTHANC_FRAMEMORK_FILENAME}") | 316 set(ORTHANC_FRAMEWORK_URL "https://orthanc.uclouvain.be/third-party-downloads/orthanc-framework/${ORTHANC_FRAMEMORK_FILENAME}") |
317 endif() | 317 endif() |
318 | 318 |
319 set(ORTHANC_FRAMEWORK_ARCHIVE "${CMAKE_SOURCE_DIR}/ThirdPartyDownloads/${ORTHANC_FRAMEMORK_FILENAME}") | 319 set(ORTHANC_FRAMEWORK_ARCHIVE "${CMAKE_SOURCE_DIR}/ThirdPartyDownloads/${ORTHANC_FRAMEMORK_FILENAME}") |
320 | 320 |
321 if (NOT EXISTS "${ORTHANC_FRAMEWORK_ARCHIVE}") | 321 if (NOT EXISTS "${ORTHANC_FRAMEWORK_ARCHIVE}") |