# HG changeset patch # User Sebastien Jodogne # Date 1623481300 -7200 # Node ID 6c252e51008d3ce729d030508a0b37d33c866ffa # Parent 126522623e20868fbb1da546ac2399a21fb05c49 no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework diff -r 126522623e20 -r 6c252e51008d Applications/StoneWebViewer/Plugin/CMakeLists.txt --- a/Applications/StoneWebViewer/Plugin/CMakeLists.txt Thu Jun 10 12:07:04 2021 +0200 +++ b/Applications/StoneWebViewer/Plugin/CMakeLists.txt Sat Jun 12 09:01:40 2021 +0200 @@ -46,6 +46,17 @@ include_directories(${ORTHANC_FRAMEWORK_ROOT}) if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") + if (ORTHANC_FRAMEWORK_USE_SHARED) + include(FindBoost) + find_package(Boost COMPONENTS system) + + if (NOT Boost_FOUND) + message(FATAL_ERROR "Unable to locate Boost on this system") + endif() + + link_libraries(${Boost_LIBRARIES} jsoncpp) + endif() + link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) else()