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-1.0/CMakeLists.txt
===================================================================
--- OrthancPostgreSQL-1.0.orig/CMakeLists.txt
+++ OrthancPostgreSQL-1.0/CMakeLists.txt
@@ -134,3 +134,11 @@ add_executable(UnitTests
   ${CMAKE_SOURCE_DIR}/UnitTestsSources/PostgreSQLTests.cpp
   ${CMAKE_SOURCE_DIR}/UnitTestsSources/PostgreSQLWrapperTests.cpp
   )
+
+set(VERSION 1.0)
+set_target_properties(OrthancPostgreSQLStorage PROPERTIES
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLStorage.so.${VERSION}"
+  NO_SONAME ON)
+set_target_properties(OrthancPostgreSQLIndex PROPERTIES
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLIndex.so.${VERSION}"
+  NO_SONAME ON)
