From b7854ae53353fc45703fb6df13855dd731aea818 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 Jun 2026 20:55:00 +0200 Subject: cmake: more precise minimum version detection --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0da434d..7725cb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,11 @@ -cmake_minimum_required(VERSION 3.1) +if(DEFINED ENV{APPVEYOR}) + # Required because the image used (Visual Studio 2013) ships with a CMake + # version that really is too old. + cmake_minimum_required(VERSION 3.12) +else() + # oldstable as of May '26. + cmake_minimum_required(VERSION 3.25) +endif() project(win7drv CXX) -- cgit v1.3