changeset 316:1c2cd90418c9

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Jul 2021 14:59:36 +0200
parents 11641063ddb2
children be8b0ac774e2
files MySQL/CMakeLists.txt PostgreSQL/CMakeLists.txt
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MySQL/CMakeLists.txt	Wed Jul 14 18:29:27 2021 +0200
+++ b/MySQL/CMakeLists.txt	Mon Jul 19 14:59:36 2021 +0200
@@ -75,8 +75,9 @@
   Plugins/MySQLStorageArea.cpp
   )
 
-set_property(TARGET FrameworkForPlugins
-  PROPERTY POSITION_INDEPENDENT_CODE ON
+set_target_properties(FrameworkForPlugins PROPERTIES
+  POSITION_INDEPENDENT_CODE ON
+  COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
   )
 
 add_library(OrthancMySQLIndex SHARED
--- a/PostgreSQL/CMakeLists.txt	Wed Jul 14 18:29:27 2021 +0200
+++ b/PostgreSQL/CMakeLists.txt	Mon Jul 19 14:59:36 2021 +0200
@@ -78,8 +78,9 @@
   Plugins/PostgreSQLStorageArea.cpp
   )
 
-set_property(TARGET FrameworkForPlugins
-  PROPERTY POSITION_INDEPENDENT_CODE ON
+set_target_properties(FrameworkForPlugins PROPERTIES
+  POSITION_INDEPENDENT_CODE ON
+  COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
   )
 
 add_library(OrthancPostgreSQLIndex SHARED