# HG changeset patch # User Sebastien Jodogne # Date 1765289680 -3600 # Node ID 9769daedca178576588113d4a6f9e46c0219c7f6 # Parent 84c290aea0857908f19f2173b0e867c8cb0de8da removed stub library boost_system from find_package() diff -r 84c290aea085 -r 9769daedca17 CMakeLists.txt --- a/CMakeLists.txt Wed Sep 03 12:07:06 2025 +0200 +++ b/CMakeLists.txt Tue Dec 09 15:14:40 2025 +0100 @@ -54,7 +54,13 @@ if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") if (ORTHANC_FRAMEWORK_USE_SHARED) - include(FindBoost) + # https://cmake.org/cmake/help/latest/policy/CMP0167.html + if (CMAKE_VERSION VERSION_GREATER "3.30") + find_package(Boost CONFIG) + else() + include(FindBoost) + endif() + find_package(Boost COMPONENTS thread) if (NOT Boost_FOUND)