From 33bc785c51991212cc59fcb2b89b33851c152f61 Mon Sep 17 00:00:00 2001 From: "Ghorban M. Tavakoly" Date: Fri, 4 Apr 2025 02:29:32 +0330 Subject: [PATCH] fix: Bump cmake_minimum_required to 3.5 Last week CMake 4.0 released and it is in available in some bleeding edge distros like Arch Linux and it will be available in other distros soon. Compatibility with CMake < 3.5 has been removed from CMake 4.0. So we need to update the `VERSION` argument `` value. Or, use the `...` syntax to tell CMake that the project requires at least `` but has been updated to work with policies introduced by `` or earlier. Or, we need add `-DCMAKE_POLICY_VERSION_MINIMUM=3.5` to cmake arguments to try configuring anyway. I changed `` to `3.5`, so we can build with cmake >= 4.0. Signed-off-by: Ghorban M. Tavakoly --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 39cd7ef..6029243 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.5) project(termistor) set(CMAKE_INCLUDE_CURRENT_DIR ON)