Mercurial > hg > orthanc-stone
changeset 2266:b1251ab963a9 default tip
removed stub library boost_system from find_package()
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 09 Dec 2025 15:08:35 +0100 |
| parents | 29aff6de9acc |
| children | |
| files | Applications/Samples/RtViewerPlugin/CMakeLists.txt Applications/StoneWebViewer/Plugin/CMakeLists.txt |
| diffstat | 2 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/Samples/RtViewerPlugin/CMakeLists.txt Wed Dec 03 21:39:31 2025 +0100 +++ b/Applications/Samples/RtViewerPlugin/CMakeLists.txt Tue Dec 09 15:08:35 2025 +0100 @@ -54,9 +54,13 @@ if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") if (ORTHANC_FRAMEWORK_USE_SHARED) - include(FindBoost) - find_package(Boost COMPONENTS system) - + # https://cmake.org/cmake/help/latest/policy/CMP0167.html + if (CMAKE_VERSION VERSION_GREATER "3.30") + find_package(Boost CONFIG) + else() + include(FindBoost) + endif() + if (NOT Boost_FOUND) message(FATAL_ERROR "Unable to locate Boost on this system") endif()
--- a/Applications/StoneWebViewer/Plugin/CMakeLists.txt Wed Dec 03 21:39:31 2025 +0100 +++ b/Applications/StoneWebViewer/Plugin/CMakeLists.txt Tue Dec 09 15:08:35 2025 +0100 @@ -46,9 +46,13 @@ if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") if (ORTHANC_FRAMEWORK_USE_SHARED) - include(FindBoost) - find_package(Boost COMPONENTS system) - + # https://cmake.org/cmake/help/latest/policy/CMP0167.html + if (CMAKE_VERSION VERSION_GREATER "3.30") + find_package(Boost CONFIG) + else() + include(FindBoost) + endif() + if (NOT Boost_FOUND) message(FATAL_ERROR "Unable to locate Boost on this system") endif()
