Description: Fix the version of the shared library
Author: Sebastien Jodogne <s.jodogne@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancWSI-0.5/ViewerPlugin/CMakeLists.txt
===================================================================
--- OrthancWSI-0.5.orig/ViewerPlugin/CMakeLists.txt
+++ OrthancWSI-0.5/ViewerPlugin/CMakeLists.txt
@@ -197,9 +197,10 @@ add_library(OrthancWSI SHARED
   )
 
 message("Setting the version of the library to ${ORTHANC_WSI_VERSION}")
-set_target_properties(OrthancWSI PROPERTIES 
-  VERSION ${ORTHANC_WSI_VERSION} 
-  SOVERSION ${ORTHANC_WSI_VERSION})
+set_target_properties(OrthancWSI PROPERTIES
+  NO_SONAME ON
+  LINK_FLAGS "-Wl,-soname,libOrthancWSI.so.${ORTHANC_WSI_VERSION}"
+  )
 
 install(
   TARGETS OrthancWSI
