Mercurial > hg > orthanc-neuro
changeset 33:b92009d80cce
fix for newer versions of cmake
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 09 Dec 2025 15:20:33 +0100 |
| parents | ec889f107d3c |
| children | 77d5dbcdf479 |
| files | CMakeLists.txt |
| diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Mon Sep 01 12:32:55 2025 +0200 +++ b/CMakeLists.txt Tue Dec 09 15:20:33 2025 +0100 @@ -52,7 +52,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 filesystem thread) if (NOT Boost_FOUND)
