changeset 4000:5f6c11a5e1f9

set default value for ORTHANC_FRAMEWORK_BUILDING_LIBRARY
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Jun 2020 19:18:14 +0200
parents 44e2a8e0b6ae
children 5d5662ff4d5c
files CMakeLists.txt Core/OrthancFramework.h
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Fri Jun 05 19:14:20 2020 +0200
+++ b/CMakeLists.txt	Fri Jun 05 19:18:14 2020 +0200
@@ -251,7 +251,6 @@
 
 
 add_definitions(
-  -DORTHANC_FRAMEWORK_BUILDING_LIBRARY=0
   -DORTHANC_BUILD_UNIT_TESTS=1
   -DORTHANC_ENABLE_LOGGING_PLUGIN=0
   
--- a/Core/OrthancFramework.h	Fri Jun 05 19:14:20 2020 +0200
+++ b/Core/OrthancFramework.h	Fri Jun 05 19:18:14 2020 +0200
@@ -42,7 +42,7 @@
 #define __ORTHANC_FRAMEWORK_H
 
 #if !defined(ORTHANC_FRAMEWORK_BUILDING_LIBRARY)
-#  error Macro ORTHANC_FRAMEWORK_BUILDING_LIBRARY must be defined
+#  define ORTHANC_FRAMEWORK_BUILDING_LIBRARY 0
 #endif
 
 /**