Mercurial > hg > orthanc
changeset 2536:e0e377a48626
ORTHANC_FRAMEWORK_PLUGIN
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Apr 2018 14:23:25 +0200 |
parents | d3476d90dcb7 |
children | a1a331884ebc |
files | Resources/CMake/OrthancFrameworkConfiguration.cmake |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
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