changeset 9:c46ed3cd5ddc

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Jun 2019 17:45:07 +0200
parents da3228ac9227
children 340f02ddaabf
files CMakeLists.txt
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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")