diff Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2406:f0cfacd0c9b8

Orthanc framework: ORTHANC_SANDBOXED parameter
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Sep 2017 16:28:27 +0200
parents e6af2c5cd0f1
children 5edec967055e
line wrap: on
line diff
--- a/Resources/CMake/OrthancFrameworkConfiguration.cmake	Fri Sep 15 13:07:06 2017 +0200
+++ b/Resources/CMake/OrthancFrameworkConfiguration.cmake	Wed Sep 20 16:28:27 2017 +0200
@@ -402,11 +402,17 @@
   -DORTHANC_ENABLE_LOGGING_PLUGIN=0
   -DORTHANC_ENABLE_MD5=1
   -DORTHANC_MAXIMUM_TAG_LENGTH=256
-  -DORTHANC_SANDBOXED=0
   -DORTHANC_VERSION="${ORTHANC_VERSION}"
   )
 
 
+if (ORTHANC_SANDBOXED)
+  add_definitions(-DORTHANC_SANDBOXED=1)
+else()
+  add_definitions(-DORTHANC_SANDBOXED=0)
+endif()
+
+
 if (HAS_EMBEDDED_RESOURCES)
   add_definitions(-DORTHANC_HAS_EMBEDDED_RESOURCES=1)