Description: Fix the soname of the shared libraries
Author: Sebastien Jodogne <s.jodogne@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancMySQL-1.0/MySQL/CMakeLists.txt
===================================================================
--- OrthancMySQL-1.0.orig/MySQL/CMakeLists.txt
+++ OrthancMySQL-1.0/MySQL/CMakeLists.txt
@@ -81,17 +81,15 @@ add_definitions(
   -DHAS_ORTHANC_EXCEPTION=1
   )
 
-set_target_properties(OrthancMySQLStorage PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancMySQLStorage PROPERTIES
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
-  )
+  LINK_FLAGS "-Wl,-soname,libOrthancMySQLStorage.so.${DEB_VERSION}"
+  NO_SONAME ON)
 
-set_target_properties(OrthancMySQLIndex PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancMySQLIndex PROPERTIES
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
-  )
+  LINK_FLAGS "-Wl,-soname,libOrthancMySQLIndex.so.${DEB_VERSION}"
+  NO_SONAME ON)
 
 install(
   TARGETS OrthancMySQLIndex OrthancMySQLStorage
