From 14dbaa63388a59b87722c067ef58ab0012256de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Thu, 3 Apr 2025 09:21:25 +0200 Subject: [PATCH] cmake: raise minimum required version to 3.5 ... to fix the following CMake 4.0 error: ``` CMake Error at CMakeLists.txt:18 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. 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, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. ``` --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5979fac..ea155e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2014 - 2022 Red Hat, Inc. +# Copyright (C) 2014 - 2025 Red Hat, Inc. # # This file is part of cscppc. # @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with cscppc. If not, see . -cmake_minimum_required(VERSION 3.4) +cmake_minimum_required(VERSION 3.5) project(cscppc C) enable_testing()