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.3/CMakeLists.txt
===================================================================
--- OrthancDicomWeb-0.3.orig/CMakeLists.txt
+++ OrthancDicomWeb-0.3/CMakeLists.txt
@@ -47,7 +47,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)
@@ -142,9 +142,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(
Index: OrthancDicomWeb-0.3/Orthanc/Resources/CMake/Compiler.cmake
===================================================================
--- OrthancDicomWeb-0.3.orig/Orthanc/Resources/CMake/Compiler.cmake
+++ OrthancDicomWeb-0.3/Orthanc/Resources/CMake/Compiler.cmake
@@ -60,7 +60,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux
   # Remove the "-rdynamic" option
   # http://www.mail-archive.com/cmake@cmake.org/msg08837.html
   set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
-  link_libraries(uuid pthread rt)
+  link_libraries(pthread rt)
 
   if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
