Mercurial > hg > orthanc
changeset 6077:836d8b432ae3
fix cmake 3.30 with boost
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Apr 2025 13:00:58 +0200 (6 weeks ago) |
parents | 7a983a005931 |
children | c314fccfe8b7 |
files | OrthancFramework/Resources/CMake/BoostConfiguration.cmake |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Resources/CMake/BoostConfiguration.cmake Wed Apr 02 17:44:09 2025 +0200 +++ b/OrthancFramework/Resources/CMake/BoostConfiguration.cmake Fri Apr 04 13:00:58 2025 +0200 @@ -23,7 +23,12 @@ if (STATIC_BUILD OR NOT USE_SYSTEM_BOOST) set(BOOST_STATIC 1) else() - 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() set(BOOST_STATIC 0) #set(Boost_DEBUG 1)