Mercurial > hg > orthanc-dicomweb
changeset 731:f72e8d37db77
fix compatibility with newer cmake versions for system-wide linking
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Wed, 26 Nov 2025 21:57:57 +0100 |
| parents | ff400f3cfc99 |
| children | 6baed50da311 |
| files | CMakeLists.txt |
| diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)
