From 1627ada6965f836524460ac56fcfc2449f5fa02c Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 27 Jan 2025 11:16:32 +0100 Subject: [PATCH] Bump minimum required CMake to 3.26 * Bump minimum required CMake to 3.26 Recently, dependencies using vcpkg was updated, including boost 1.86. When boost 1.86 is linked by ResInsight, the minimum required CMake version is 3.26. It is possible to manage dependencies manually without using vcpkg. In this case, the ResInsight build might work with a lower CMake requirement. This scenario is not tested by the ResInsight team. * Use minimum required version of CMake when building on GitHub Action --- .github/workflows/ResInsightWithCache.yml | 2 +- CMakeLists.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ResInsightWithCache.yml b/.github/workflows/ResInsightWithCache.yml index c1cfcaa9e7..2504ec4470 100644 --- a/.github/workflows/ResInsightWithCache.yml +++ b/.github/workflows/ResInsightWithCache.yml @@ -99,7 +99,7 @@ jobs: - name: Use CMake uses: lukka/get-cmake@latest with: - cmakeVersion: "~3.28.0" + cmakeVersion: "~3.26.0" - name: Use MSVC (Windows) uses: ilammy/msvc-dev-cmd@v1 diff --git a/CMakeLists.txt b/CMakeLists.txt index d019da5f58..44ce768376 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ -cmake_minimum_required(VERSION 3.15) +# The way boost is configured and used in Boost 1.86 requires CMake 3.26 +cmake_minimum_required(VERSION 3.26) include(CheckCSourceCompiles) include(FetchContent)