# HG changeset patch # User Sebastien Jodogne # Date 1765287827 -3600 # Node ID b747c244317f2563ca133c1c19e5943369e99e15 # Parent c88da110729ec3f02e5efbb9c7f8903282a5b69c fix build with recent versions of cmake diff -r c88da110729e -r b747c244317f CMakeLists.txt --- a/CMakeLists.txt Tue Dec 09 14:43:03 2025 +0100 +++ b/CMakeLists.txt Tue Dec 09 14:43:47 2025 +0100 @@ -47,7 +47,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 system) if (NOT Boost_FOUND)