# HG changeset patch # User Sebastien Jodogne # Date 1765288863 -3600 # Node ID c124644d2e33e04de8bddb0a5679182e9f2ebc83 # Parent 63b171c5cbffd894eb841aea12986ee06670fb40 fix build with recent versions of cmake diff -r 63b171c5cbff -r c124644d2e33 CMakeLists.txt --- a/CMakeLists.txt Wed Nov 12 13:27:30 2025 +0100 +++ b/CMakeLists.txt Tue Dec 09 15:01:03 2025 +0100 @@ -86,7 +86,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 system thread) if (NOT Boost_FOUND)