# HG changeset patch # User Sebastien Jodogne # Date 1560440707 -7200 # Node ID c46ed3cd5ddccbbefc1dab182902f03f84f2f0bb # Parent da3228ac9227a72922ed71bd986c931b88445941 fix diff -r da3228ac9227 -r c46ed3cd5ddc CMakeLists.txt --- a/CMakeLists.txt Thu Jun 13 17:19:44 2019 +0200 +++ b/CMakeLists.txt Thu Jun 13 17:45:07 2019 +0200 @@ -7,7 +7,15 @@ # TODO - Update to 1.5.7 once available if (GCP_PLUGIN_VERSION STREQUAL "mainline") - set(ORTHANC_FRAMEWORK_VERSION "mainline") + if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") + set(ORTHANC_FRAMEWORK_VERSION "mainline") + else() + # "hg" is not available in holy-build-box => We set + # "ORTHANC_FRAMEWORK_SOURCE" to "web" in the build script, which + # forces to use a specific version (1.5.6) + set(ORTHANC_FRAMEWORK_VERSION "1.5.6") + endif() + set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") else() set(ORTHANC_FRAMEWORK_VERSION "1.5.6")