From 3bec6df50682c0bfdd36954158d6e41c65094faf Mon Sep 17 00:00:00 2001 From: Kiran S <6carbon12.oss@proton.me> Date: Sat, 26 Jul 2025 23:16:41 +0530 Subject: [PATCH] fix: raise CMake version to 3.5 The previous minimum version was set to 3.0, which was deprecated in CMake 4.0. This caused build failures for users with newer versions of CMake. Raising the minimum required version to 3.5 fixes the issue while maintaining compatibility with existing setups. Fixes #946 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36a6cb57..9428da58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ set(CMAKE_LEGACY_CYGWIN_WIN32 0) -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(cJSON VERSION 1.7.18