cross/mipsel-linux-uclibc/buildroot/buildroot-2025.02.4/package/pahole/0001-CMakeLists.txt-Require...

46 lines
1.6 KiB
Diff

From 12ca11281912c272f931e836b9160ee827250716 Mon Sep 17 00:00:00 2001
From: Arnaldo Carvalho de Melo <acme@redhat.com>
Date: Tue, 26 Nov 2024 14:19:16 -0300
Subject: [PATCH] CMakeLists.txt: Require cmake 3.5 or higher
To address this warning from cmake:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
Cc: Alan Maguire <alan.maguire@oracle.com>
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Domenico Andreoli <cavok@debian.org>
Cc: Dominique Leuenberger <dimstar@opensuse.org>
Cc: Dominique Martinet <asmadeus@codewreck.org>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Guilherme Amadio <amadio@gentoo.org>
Cc: Jan Alexander Steffens <heftig@archlinux.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Matthias Schwarzott <zzam@gentoo.org>
Link: https://lore.kernel.org/all/Z0YEFABQejfGTyrj@x1
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Upstream: https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=12ca11281912c272f931e836b9160ee827250716
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d0dadf6eea7..90fa65c391b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.5)
project(pahole C)
cmake_policy(SET CMP0005 NEW)
--
2.49.0