Mercurial > hg > orthanc
comparison OrthancServer/CMakeLists.txt @ 4761:31e12d2ce275
Linux Standard Base (LSB) builds of Orthanc can load non-LSB builds of plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Aug 2021 13:00:37 +0200 |
parents | cc64385593ef |
children | 61da49321754 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4759:cb18a1869e4e | 4761:31e12d2ce275 |
---|---|
395 ${ORTHANC_RESOURCES} | 395 ${ORTHANC_RESOURCES} |
396 ) | 396 ) |
397 | 397 |
398 target_link_libraries(Orthanc ServerLibrary CoreLibrary ${DCMTK_LIBRARIES}) | 398 target_link_libraries(Orthanc ServerLibrary CoreLibrary ${DCMTK_LIBRARIES}) |
399 | 399 |
400 if ("${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") | |
401 # The link flag below hides all the global functions so that a Linux | |
402 # Standard Base (LSB) build of Orthanc can load plugins that are not | |
403 # built using LSB (new in Orthanc 1.9.7) | |
404 set_property( | |
405 TARGET Orthanc | |
406 PROPERTY LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/VersionScriptOrthanc.map" | |
407 ) | |
408 endif() | |
409 | |
400 install( | 410 install( |
401 TARGETS Orthanc | 411 TARGETS Orthanc |
402 RUNTIME DESTINATION sbin | 412 RUNTIME DESTINATION sbin |
403 ) | 413 ) |
404 | 414 |