mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
package/mrp: fix cmake 4 compatibility
Fixes: https://autobuild.buildroot.net/results/d93/d938025a881a14003c1b50065f163115e36cf33e/ Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Michael Cullen <michael@michaelcullen.name> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
1eeed7e978
commit
299567b78e
@@ -0,0 +1,41 @@
|
||||
From 23877eaf1042b56e1bdca1883447e9a83d5e8263 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
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 <min> value. Or, use the <min>...<max> syntax
|
||||
to tell CMake that the project requires at least <min> but has been updated
|
||||
to work with policies introduced by <max> 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 <bernd@kuhls.net>
|
||||
---
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user