Mercurial > hg > orthanc
comparison OrthancFramework/SharedLibrary/CMakeLists.txt @ 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 | 304842a0d152 |
children | baf8e21e91cb |
comparison
equal
deleted
inserted
replaced
4133:36c30a95bc3f | 4134:2c54cc9a712f |
---|---|
56 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++") | 56 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++") |
57 endif() | 57 endif() |
58 | 58 |
59 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/OrthancFrameworkParameters.cmake) | 59 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/OrthancFrameworkParameters.cmake) |
60 | 60 |
61 # "ORTHANC_VERSION" is initialized by "OrthancFrameworkParameters.cmake" | |
62 set(ORTHANC_FRAMEWORK_SOVERSION "${ORTHANC_VERSION}" CACHE STRING "On GNU/Linux, the SOVERSION to be used for the shared library") | |
63 | |
61 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK) | 64 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK) |
62 set(STANDALONE_BUILD ON) | 65 set(STANDALONE_BUILD ON) |
63 else() | 66 else() |
64 set(STANDALONE_BUILD OFF) | 67 set(STANDALONE_BUILD OFF) |
65 endif() | 68 endif() |
269 | 272 |
270 # Configure the version of the shared library | 273 # Configure the version of the shared library |
271 set_target_properties( | 274 set_target_properties( |
272 OrthancFramework PROPERTIES | 275 OrthancFramework PROPERTIES |
273 VERSION ${ORTHANC_VERSION} | 276 VERSION ${ORTHANC_VERSION} |
274 SOVERSION ${ORTHANC_VERSION} | 277 SOVERSION ${ORTHANC_FRAMEWORK_SOVERSION} |
275 ) | 278 ) |
276 endif() | 279 endif() |
277 | 280 |
278 | 281 |
279 target_link_libraries(OrthancFramework ${DCMTK_LIBRARIES}) | 282 target_link_libraries(OrthancFramework ${DCMTK_LIBRARIES}) |