changeset 4134:2c54cc9a712f

ORTHANC_FRAMEWORK_SOVERSION for the shared library of the Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 23 Jul 2020 10:28:04 +0200
parents 36c30a95bc3f
children baf8e21e91cb
files OrthancFramework/SharedLibrary/CMakeLists.txt
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/SharedLibrary/CMakeLists.txt	Wed Jul 08 14:25:11 2020 +0200
+++ b/OrthancFramework/SharedLibrary/CMakeLists.txt	Thu Jul 23 10:28:04 2020 +0200
@@ -58,6 +58,9 @@
 
 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/OrthancFrameworkParameters.cmake)
 
+# "ORTHANC_VERSION" is initialized by "OrthancFrameworkParameters.cmake"
+set(ORTHANC_FRAMEWORK_SOVERSION "${ORTHANC_VERSION}" CACHE STRING "On GNU/Linux, the SOVERSION to be used for the shared library")
+
 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK)
   set(STANDALONE_BUILD ON)
 else()
@@ -271,7 +274,7 @@
   set_target_properties(
     OrthancFramework PROPERTIES 
     VERSION ${ORTHANC_VERSION} 
-    SOVERSION ${ORTHANC_VERSION}
+    SOVERSION ${ORTHANC_FRAMEWORK_SOVERSION}
     )
 endif()