diff --git a/package/mrp/0001-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch b/package/mrp/0001-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch new file mode 100644 index 0000000000..7ddf08cd6d --- /dev/null +++ b/package/mrp/0001-cmake-Set-minimum-required-version-to-3.5-for-CMake-.patch @@ -0,0 +1,41 @@ +From 23877eaf1042b56e1bdca1883447e9a83d5e8263 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Sun, 18 Jan 2026 14:26:05 +0100 +Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+ + compatibility + +Fixes: +CMake Error at CMakeLists.txt:6 (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. + +-- Configuring incomplete, errors occurred! + +Upstream: https://github.com/microchip-ung/mrp/pull/2 + +Signed-off-by: Bernd Kuhls +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d7a3798..a0ae196 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ + + project (mrp C) + +-cmake_minimum_required(VERSION 2.6) ++cmake_minimum_required(VERSION 3.5) + + ## libnl ################################################ + find_path(LibNL_INCLUDE_DIR netlink/netlink.h +-- +2.47.3 +