From 65b327165ba5b9a223ec7d276d57b0e0b6381ead Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Mon, 18 Aug 2025 19:00:00 +0200 Subject: [PATCH] Set the minimum CMake version to 3.5 This avoids the following error with CMake 4: CMake Error at CMakeLists.txt:1 (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08c7bb1..13ad5c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.5) project(earcut_hpp LANGUAGES CXX C) option(EARCUT_BUILD_TESTS "Build the earcut test program" ON)