# HG changeset patch # User Sebastien Jodogne # Date 1758620788 -7200 # Node ID 9587f2820c11f56488897c082f2be53a0fd1f237 # Parent 935c02235c493397eb64d4aee383b5425b4ee284 fix for recent versions of cmake diff -r 935c02235c49 -r 9587f2820c11 CMakeLists.txt --- a/CMakeLists.txt Tue Sep 23 11:32:56 2025 +0200 +++ b/CMakeLists.txt Tue Sep 23 11:46:28 2025 +0200 @@ -57,7 +57,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)