Description: Fix the linking of the shared library
Author: Sebastien Jodogne <s.jodogne@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancDicomWeb-0.4/CMakeLists.txt
===================================================================
--- OrthancDicomWeb-0.4.orig/CMakeLists.txt
+++ OrthancDicomWeb-0.4/CMakeLists.txt
@@ -49,7 +49,7 @@ include(CheckIncludeFileCXX)
 include(CheckLibraryExists)
 include(FindPythonInterp)
 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake)
-include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
+#include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake)
 
 include(${ORTHANC_ROOT}/Resources/CMake/BoostConfiguration.cmake)
 include(${ORTHANC_ROOT}/Resources/CMake/GoogleTestConfiguration.cmake)
@@ -146,9 +146,9 @@ message("Setting the version of the libr
 
 add_definitions(-DORTHANC_DICOM_WEB_VERSION="${ORTHANC_DICOM_WEB_VERSION}")
 
-set_target_properties(OrthancDicomWeb PROPERTIES 
-  VERSION ${ORTHANC_DICOM_WEB_VERSION} 
-  SOVERSION ${ORTHANC_DICOM_WEB_VERSION}
+set_target_properties(OrthancDicomWeb PROPERTIES
+  NO_SONAME ON
+  LINK_FLAGS "-Wl,-soname,libOrthancDicomWeb.so.${ORTHANC_DICOM_WEB_VERSION}"
   )
 
 install(
