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/
--- a/ViewerPlugin/CMakeLists.txt
+++ b/ViewerPlugin/CMakeLists.txt
@@ -234,9 +234,10 @@
   )
 
 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
