# HG changeset patch # User Sebastien Jodogne # Date 1523891257 -7200 # Node ID c35202c8c0db124d7286a051bf3607603a7eb0d7 # Parent b7ed112ce56e614f3ee5221f05fc7166f58cf6f2 fix diff -r b7ed112ce56e -r c35202c8c0db Resources/DownloadOrthancFramework.cmake --- 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()