# HG changeset patch # User Alain Mazy # Date 1764689535 -3600 # Node ID 6baed50da311baf06f1d5f5424e54b793eea1ac9 # Parent 06e580b0da0e1014b75e9510c9d0ddc3a88cf081# Parent f72e8d37db77683de02e4d0858fd4db9db93909a merge diff -r 06e580b0da0e -r 6baed50da311 CMakeLists.txt --- a/CMakeLists.txt Tue Dec 02 16:28:34 2025 +0100 +++ b/CMakeLists.txt Tue Dec 02 16:32:15 2025 +0100 @@ -60,7 +60,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 regex thread) if (NOT Boost_FOUND)