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
This commit is contained in:
Magne Sjaastad
2025-01-27 11:16:32 +01:00
committed by GitHub
parent 9b11539353
commit 1627ada696
2 changed files with 3 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ jobs:
- name: Use CMake - name: Use CMake
uses: lukka/get-cmake@latest uses: lukka/get-cmake@latest
with: with:
cmakeVersion: "~3.28.0" cmakeVersion: "~3.26.0"
- name: Use MSVC (Windows) - name: Use MSVC (Windows)
uses: ilammy/msvc-dev-cmd@v1 uses: ilammy/msvc-dev-cmd@v1

View File

@@ -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(CheckCSourceCompiles)
include(FetchContent) include(FetchContent)