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.0/CMakeLists.txt
===================================================================
--- OrthancPostgreSQL-2.0.orig/CMakeLists.txt
+++ OrthancPostgreSQL-2.0/CMakeLists.txt
@@ -147,15 +147,12 @@ message("Setting the version of the libr
 
 add_definitions(-DORTHANC_POSTGRESQL_VERSION="${ORTHANC_POSTGRESQL_VERSION}")
 
-set_target_properties(OrthancPostgreSQLStorage PROPERTIES 
-  VERSION ${ORTHANC_POSTGRESQL_VERSION} 
-  SOVERSION ${ORTHANC_POSTGRESQL_VERSION}
-  )
-
-set_target_properties(OrthancPostgreSQLIndex PROPERTIES 
-  VERSION ${ORTHANC_POSTGRESQL_VERSION} 
-  SOVERSION ${ORTHANC_POSTGRESQL_VERSION}
-  )
+set_target_properties(OrthancPostgreSQLStorage PROPERTIES
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLStorage.so.${ORTHANC_POSTGRESQL_VERSION}"
+  NO_SONAME ON)
+set_target_properties(OrthancPostgreSQLIndex PROPERTIES
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLIndex.so.${ORTHANC_POSTGRESQL_VERSION}"
+  NO_SONAME ON)
 
 install(
   TARGETS OrthancPostgreSQLStorage OrthancPostgreSQLIndex
