Mercurial > hg > orthanc
diff OrthancServer/CMakeLists.txt @ 4763:bbe70c24bc60 Orthanc-1.9.6
hotfix for LSB precompiled binaries of Orthanc 1.9.6: reintegration of changeset 4761
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Aug 2021 08:49:42 +0200 |
parents | cc64385593ef |
children | 61da49321754 7053502fbf97 |
line wrap: on
line diff
--- a/OrthancServer/CMakeLists.txt Wed Jul 21 10:26:20 2021 +0200 +++ b/OrthancServer/CMakeLists.txt Mon Aug 09 08:49:42 2021 +0200 @@ -397,6 +397,16 @@ target_link_libraries(Orthanc ServerLibrary CoreLibrary ${DCMTK_LIBRARIES}) +if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") + # The link flag below hides all the global functions so that a Linux + # Standard Base (LSB) build of Orthanc can load plugins that are not + # built using LSB (new in Orthanc 1.9.7) + set_property( + TARGET Orthanc + PROPERTY LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/VersionScriptOrthanc.map" + ) +endif() + install( TARGETS Orthanc RUNTIME DESTINATION sbin