Mercurial > hg > orthanc-gdcm
changeset 114:9769daedca17
removed stub library boost_system from find_package()
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 09 Dec 2025 15:14:40 +0100 |
| parents | 84c290aea085 |
| children | 274e1cb8ea8c |
| files | CMakeLists.txt |
| diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Wed Sep 03 12:07:06 2025 +0200 +++ b/CMakeLists.txt Tue Dec 09 15:14:40 2025 +0100 @@ -54,7 +54,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 thread) if (NOT Boost_FOUND)
