# HG changeset patch # User Sebastien Jodogne # Date 1764190677 -3600 # Node ID f72e8d37db77683de02e4d0858fd4db9db93909a # Parent ff400f3cfc992c110ee7d5a6aaf086f2615b0745 fix compatibility with newer cmake versions for system-wide linking diff -r ff400f3cfc99 -r f72e8d37db77 CMakeLists.txt --- a/CMakeLists.txt Mon Nov 24 20:03:42 2025 +0100 +++ b/CMakeLists.txt Wed Nov 26 21:57:57 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)