From 5c394520403c40b656a7400681e4ae167943e43f Mon Sep 17 00:00:00 2001
From: Martin Ling <martin-git@earth.li>
Date: Tue, 16 Sep 2025 18:57:31 +0100
Subject: [PATCH 55/75] Bump CMake minimum version to 3.5.0.

This is the minimum now accepted by latest CMake releases.
---
 firmware/CMakeLists.txt            | 2 +-
 firmware/blinky/CMakeLists.txt     | 2 +-
 firmware/hackrf_usb/CMakeLists.txt | 2 +-
 host/CMakeLists.txt                | 2 +-
 host/hackrf-tools/CMakeLists.txt   | 2 +-
 host/libhackrf/CMakeLists.txt      | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/firmware/CMakeLists.txt b/firmware/CMakeLists.txt
index c458b7f1..337353fa 100644
--- a/firmware/CMakeLists.txt
+++ b/firmware/CMakeLists.txt
@@ -20,7 +20,7 @@
 
 # Top directory CMake project for HackRF firmware
 
-cmake_minimum_required(VERSION 3.1.3)
+cmake_minimum_required(VERSION 3.5.0)
 set(CMAKE_TOOLCHAIN_FILE toolchain-arm-cortex-m.cmake)
 
 project (hackrf_firmware_all C)
diff --git a/firmware/blinky/CMakeLists.txt b/firmware/blinky/CMakeLists.txt
index dfecc320..b44ea591 100644
--- a/firmware/blinky/CMakeLists.txt
+++ b/firmware/blinky/CMakeLists.txt
@@ -19,7 +19,7 @@
 # Boston, MA 02110-1301, USA.
 #
 
-cmake_minimum_required(VERSION 3.1.3)
+cmake_minimum_required(VERSION 3.5.0)
 set(CMAKE_TOOLCHAIN_FILE ../toolchain-arm-cortex-m.cmake)
 
 project(blinky C)
diff --git a/firmware/hackrf_usb/CMakeLists.txt b/firmware/hackrf_usb/CMakeLists.txt
index d1cc8bbd..8df34a7c 100644
--- a/firmware/hackrf_usb/CMakeLists.txt
+++ b/firmware/hackrf_usb/CMakeLists.txt
@@ -18,7 +18,7 @@
 # Boston, MA 02110-1301, USA.
 #
 
-cmake_minimum_required(VERSION 3.1.3)
+cmake_minimum_required(VERSION 3.5.0)
 set(CMAKE_TOOLCHAIN_FILE ../toolchain-arm-cortex-m.cmake)
 
 project(hackrf_usb C)
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 4eaaf314..45c0f8b6 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -1,6 +1,6 @@
 #top dir cmake project for libhackrf + tools
 
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.5.0)
 project (HackRF C)
 
 set(CMAKE_C_FLAGS "$ENV{CFLAGS}" CACHE STRING "C Flags")
diff --git a/host/hackrf-tools/CMakeLists.txt b/host/hackrf-tools/CMakeLists.txt
index efb5d936..1b6d6ebf 100644
--- a/host/hackrf-tools/CMakeLists.txt
+++ b/host/hackrf-tools/CMakeLists.txt
@@ -21,7 +21,7 @@
 
 # Based heavily upon the libftdi cmake setup.
 
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.5.0)
 project(hackrf-tools C)
 set(PACKAGE hackrf-tools)
 include(${PROJECT_SOURCE_DIR}/../cmake/set_release.cmake)
diff --git a/host/libhackrf/CMakeLists.txt b/host/libhackrf/CMakeLists.txt
index 455470c1..e56e24aa 100644
--- a/host/libhackrf/CMakeLists.txt
+++ b/host/libhackrf/CMakeLists.txt
@@ -21,7 +21,7 @@
 
 # Based heavily upon the libftdi cmake setup.
 
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.5.0)
 project(libhackrf C)
 set(MAJOR_VERSION 0)
 set(MINOR_VERSION 9)
-- 
2.47.3

