Mercurial > hg > orthanc-indexer
changeset 30:6df67351ed9a
fix for newer versions of cmake
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 09 Dec 2025 15:16:27 +0100 |
| parents | d0c769a39095 |
| children | a2129fac2b60 |
| files | CMakeLists.txt |
| diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Fri May 30 10:30:19 2025 +0200 +++ b/CMakeLists.txt Tue Dec 09 15:16:27 2025 +0100 @@ -15,7 +15,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 2.8...4.0) project(OrthancIndexer) @@ -50,7 +50,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)
