build: require CMake >= 3.10 due to dropped legacy support master
authorHauke Mehrtens <[email protected]>
Fri, 3 Oct 2025 17:32:44 +0000 (19:32 +0200)
committerHauke Mehrtens <[email protected]>
Sat, 4 Oct 2025 10:00:27 +0000 (12:00 +0200)
CMake version 4.0 and later require minimum version of 3.5 or later.
Update to minimum version 3.10 which is the last not deprecated minimum
version.

CMake 3.10 was released in November 2017 and is included in Ubuntu 18.04.

Suggested-by: Hannu Nyman <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>
CMakeLists.txt

index d82799a263d33bb4190947afeb18af69b3d8794c..32133793f518fe3fd729ec3d45916f318ae4b29c 100644 (file)
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.10)
 
 PROJECT(jsonpath C)
 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-error=unused-variable -ffunction-sections -D_GNU_SOURCE)