# HG changeset patch # User Sebastien Jodogne # Date 1765289315 -3600 # Node ID b1251ab963a909ecc47970f7bfd15bc6fbb573ff # Parent 29aff6de9acc94f18ef0492080c3a7e1df766a24 removed stub library boost_system from find_package() diff -r 29aff6de9acc -r b1251ab963a9 Applications/Samples/RtViewerPlugin/CMakeLists.txt --- a/Applications/Samples/RtViewerPlugin/CMakeLists.txt Wed Dec 03 21:39:31 2025 +0100 +++ b/Applications/Samples/RtViewerPlugin/CMakeLists.txt Tue Dec 09 15:08:35 2025 +0100 @@ -54,9 +54,13 @@ if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") if (ORTHANC_FRAMEWORK_USE_SHARED) - include(FindBoost) - find_package(Boost COMPONENTS system) - + # https://cmake.org/cmake/help/latest/policy/CMP0167.html + if (CMAKE_VERSION VERSION_GREATER "3.30") + find_package(Boost CONFIG) + else() + include(FindBoost) + endif() + if (NOT Boost_FOUND) message(FATAL_ERROR "Unable to locate Boost on this system") endif() diff -r 29aff6de9acc -r b1251ab963a9 Applications/StoneWebViewer/Plugin/CMakeLists.txt --- a/Applications/StoneWebViewer/Plugin/CMakeLists.txt Wed Dec 03 21:39:31 2025 +0100 +++ b/Applications/StoneWebViewer/Plugin/CMakeLists.txt Tue Dec 09 15:08:35 2025 +0100 @@ -46,9 +46,13 @@ if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") if (ORTHANC_FRAMEWORK_USE_SHARED) - include(FindBoost) - find_package(Boost COMPONENTS system) - + # https://cmake.org/cmake/help/latest/policy/CMP0167.html + if (CMAKE_VERSION VERSION_GREATER "3.30") + find_package(Boost CONFIG) + else() + include(FindBoost) + endif() + if (NOT Boost_FOUND) message(FATAL_ERROR "Unable to locate Boost on this system") endif()