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: OrthancPostgreSQL-2.2/PostgreSQL/CMakeLists.txt
===================================================================
--- OrthancPostgreSQL-2.2.orig/PostgreSQL/CMakeLists.txt
+++ OrthancPostgreSQL-2.2/PostgreSQL/CMakeLists.txt
@@ -81,17 +81,15 @@ add_definitions(
   -DHAS_ORTHANC_EXCEPTION=1
   )
 
-set_target_properties(OrthancPostgreSQLStorage PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancPostgreSQLStorage PROPERTIES
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
-  )
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLStorage.so.${DEB_VERSION}"
+  NO_SONAME ON)
 
-set_target_properties(OrthancPostgreSQLIndex PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancPostgreSQLIndex PROPERTIES
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
-  )
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLIndex.so.${DEB_VERSION}"
+  NO_SONAME ON)
 
 install(
   TARGETS OrthancPostgreSQLIndex OrthancPostgreSQLStorage
