# HG changeset patch # User Sebastien Jodogne # Date 1560958895 -7200 # Node ID 0c0fc20a69027084e45c8926300f6da50b52284b # Parent 41d22389a7d2385ff04167ab76e1b72976b7cf21 macro ORTHANC_ENABLE_LOGGING_PLUGIN must be defined per app, not by stone diff -r 41d22389a7d2 -r 0c0fc20a6902 Applications/Samples/CMakeLists.txt --- a/Applications/Samples/CMakeLists.txt Wed Jun 19 14:12:28 2019 +0200 +++ b/Applications/Samples/CMakeLists.txt Wed Jun 19 17:41:35 2019 +0200 @@ -82,6 +82,7 @@ endif() + ##################################################################### ## Configuration for Orthanc ##################################################################### @@ -100,6 +101,10 @@ set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") +add_definitions( + -DORTHANC_ENABLE_LOGGING_PLUGIN=0 + ) + ##################################################################### ## Build a static library containing the Orthanc Stone framework diff -r 41d22389a7d2 -r 0c0fc20a6902 Applications/Samples/rt-viewer-demo/CMakeLists.txt --- a/Applications/Samples/rt-viewer-demo/CMakeLists.txt Wed Jun 19 14:12:28 2019 +0200 +++ b/Applications/Samples/rt-viewer-demo/CMakeLists.txt Wed Jun 19 17:41:35 2019 +0200 @@ -81,6 +81,7 @@ endif() + ##################################################################### ## Configuration for Orthanc ##################################################################### @@ -97,6 +98,10 @@ set(ORTHANC_FRAMEWORK_ARCHIVE "" CACHE STRING "Path to the Orthanc archive, if ORTHANC_FRAMEWORK_SOURCE is \"archive\"") set(ORTHANC_FRAMEWORK_ROOT "" CACHE STRING "Path to the Orthanc source directory, if ORTHANC_FRAMEWORK_SOURCE is \"path\"") +add_definitions( + -DORTHANC_ENABLE_LOGGING_PLUGIN=0 + ) + ##################################################################### ## Build a static library containing the Orthanc Stone framework diff -r 41d22389a7d2 -r 0c0fc20a6902 Resources/CMake/OrthancStoneConfiguration.cmake --- a/Resources/CMake/OrthancStoneConfiguration.cmake Wed Jun 19 14:12:28 2019 +0200 +++ b/Resources/CMake/OrthancStoneConfiguration.cmake Wed Jun 19 17:41:35 2019 +0200 @@ -185,7 +185,6 @@ add_definitions( -DHAS_ORTHANC_EXCEPTION=1 - -DORTHANC_ENABLE_LOGGING_PLUGIN=0 ) if (CMAKE_BUILD_TYPE STREQUAL "Debug") diff -r 41d22389a7d2 -r 0c0fc20a6902 Samples/Sdl/CMakeLists.txt --- a/Samples/Sdl/CMakeLists.txt Wed Jun 19 14:12:28 2019 +0200 +++ b/Samples/Sdl/CMakeLists.txt Wed Jun 19 17:41:35 2019 +0200 @@ -47,6 +47,11 @@ include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneConfiguration.cmake) +add_definitions( + -DORTHANC_ENABLE_LOGGING_PLUGIN=0 + ) + + ##################################################################### ## Build the samples ##################################################################### diff -r 41d22389a7d2 -r 0c0fc20a6902 Samples/WebAssembly/CMakeLists.txt --- a/Samples/WebAssembly/CMakeLists.txt Wed Jun 19 14:12:28 2019 +0200 +++ b/Samples/WebAssembly/CMakeLists.txt Wed Jun 19 17:41:35 2019 +0200 @@ -60,6 +60,10 @@ include(${CMAKE_SOURCE_DIR}/../../Resources/CMake/OrthancStoneConfiguration.cmake) +add_definitions( + -DORTHANC_ENABLE_LOGGING_PLUGIN=0 + ) + ##################################################################### ## Build the samples