build: require CMake >= 3.10 due to dropped legacy support master
authorHauke Mehrtens <[email protected]>
Fri, 3 Oct 2025 17:31:11 +0000 (19:31 +0200)
committerHauke Mehrtens <[email protected]>
Fri, 3 Oct 2025 17:31:11 +0000 (19:31 +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.

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

index 0ba72ff19ee108af0e4a868d704aa8dd699ca940..71df7a32e5e67cdbf983e5670c4c06880f8a2d49 100644 (file)
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.10)
 
 PROJECT(firewall3 C)
 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations -Wno-format-truncation)
 
 PROJECT(firewall3 C)
 ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations -Wno-format-truncation)