diff Resources/CMake/DatabasesPluginConfiguration.cmake @ 129:534759b0cf14

use of macros to report performance warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 Feb 2019 20:12:29 +0100
parents 121ab36c87bd
children 4cd7e45b671e
line wrap: on
line diff
--- a/Resources/CMake/DatabasesPluginConfiguration.cmake	Fri Feb 08 19:55:01 2019 +0100
+++ b/Resources/CMake/DatabasesPluginConfiguration.cmake	Fri Feb 08 20:12:29 2019 +0100
@@ -44,9 +44,25 @@
 endif()
 
 
+if (NOT DEFINED ORTHANC_OPTIMAL_VERSION_MAJOR)
+  message(FATAL_ERROR "ORTHANC_OPTIMAL_VERSION_MAJOR is not defined")
+endif()
+
+if (NOT DEFINED ORTHANC_OPTIMAL_VERSION_MINOR)
+  message(FATAL_ERROR "ORTHANC_OPTIMAL_VERSION_MINOR is not defined")
+endif()
+
+if (NOT DEFINED ORTHANC_OPTIMAL_VERSION_REVISION)
+  message(FATAL_ERROR "ORTHANC_OPTIMAL_VERSION_REVISION is not defined")
+endif()
+
+
 add_definitions(
   -DHAS_ORTHANC_EXCEPTION=1
   -DORTHANC_ENABLE_PLUGINS=1
+  -DORTHANC_OPTIMAL_VERSION_MAJOR=${ORTHANC_OPTIMAL_VERSION_MAJOR}
+  -DORTHANC_OPTIMAL_VERSION_MINOR=${ORTHANC_OPTIMAL_VERSION_MINOR}
+  -DORTHANC_OPTIMAL_VERSION_REVISION=${ORTHANC_OPTIMAL_VERSION_REVISION}
   )