From bad1100a030546674ceefe1b0f098ccaeadf578a Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Fri, 9 Jan 2026 14:02:30 +0100 Subject: [PATCH] Bump minimum cmake version (#323) Avoids the annoying warning messages such as: ``` CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of 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. ``` and allows to get rid of the policy definition --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a7fc86..4888d01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,4 @@ -cmake_minimum_required(VERSION 3.5) - -# See https://cmake.org/cmake/help/latest/policy/CMP0077.html -# This allows for setting option variables externally, when this project -# is included in another CMake project. -cmake_policy(SET CMP0077 NEW) +cmake_minimum_required(VERSION 3.13) project(inja DESCRIPTION "Template engine for modern C++"