# HG changeset patch # User Sebastien Jodogne # Date 1595492884 -7200 # Node ID 2c54cc9a712fbab5c4ace848568dc6d073f7b12b # Parent 36c30a95bc3f79b753ef7d7aaa0ae55a38375716 ORTHANC_FRAMEWORK_SOVERSION for the shared library of the Orthanc framework diff -r 36c30a95bc3f -r 2c54cc9a712f OrthancFramework/SharedLibrary/CMakeLists.txt --- 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()