diff Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2536:e0e377a48626

ORTHANC_FRAMEWORK_PLUGIN
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Apr 2018 14:23:25 +0200
parents ae5f98eadb75
children c53f1d015b06
line wrap: on
line diff
--- a/Resources/CMake/OrthancFrameworkConfiguration.cmake	Tue Apr 17 13:03:34 2018 +0200
+++ b/Resources/CMake/OrthancFrameworkConfiguration.cmake	Tue Apr 17 14:23:25 2018 +0200
@@ -481,10 +481,20 @@
 else()
   add_definitions(
     -DORTHANC_SANDBOXED=0
-    -DORTHANC_ENABLE_LOGGING=1
-    -DORTHANC_ENABLE_LOGGING_PLUGIN=0
     -DORTHANC_ENABLE_LOGGING_STDIO=0
     )
+
+  if (ORTHANC_FRAMEWORK_PLUGIN)
+    add_definitions(
+      -DORTHANC_ENABLE_LOGGING=1
+      -DORTHANC_ENABLE_LOGGING_PLUGIN=1
+      )
+  else()
+    add_definitions(
+      -DORTHANC_ENABLE_LOGGING=0
+      -DORTHANC_ENABLE_LOGGING_PLUGIN=0
+      )
+  endif()
   
   list(APPEND ORTHANC_CORE_SOURCES_INTERNAL
     ${ORTHANC_ROOT}/Core/Cache/SharedArchive.cpp