Mercurial > hg > orthanc
changeset 2532:c35202c8c0db
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 16 Apr 2018 17:07:37 +0200 |
parents | b7ed112ce56e |
children | e7f86a9f0f79 |
files | Resources/DownloadOrthancFramework.cmake |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/DownloadOrthancFramework.cmake Mon Apr 16 16:24:33 2018 +0200 +++ b/Resources/DownloadOrthancFramework.cmake Mon Apr 16 17:07:37 2018 +0200 @@ -45,7 +45,8 @@ if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "hg" OR ORTHANC_FRAMEWORK_SOURCE STREQUAL "web") - if (NOT ALLOW_DOWNLOADS) + if (NOT STATIC_BUILD AND + NOT ALLOW_DOWNLOADS) message(FATAL_ERROR "CMake is not allowed to download from Internet. Please set the ALLOW_DOWNLOADS option to ON") endif() endif()