gentoo-ebuilds/media-gfx/renderdoc/files/renderdoc-1.36-cmake4.patch
Andreas Sturmlechner 71596df2b5
media-gfx/renderdoc: Update CMake-4 fix
Fix CMake 3.31 warnings about unsupported <CMake-3.10 already

Closes: https://bugs.gentoo.org/964518
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-11-29 23:32:05 +01:00

25 lines
820 B
Diff

From 4af5b2752138f004631344cc43a411a38c1e1e2e Mon Sep 17 00:00:00 2001
From: Jake Turner <jake@evansturner.co.uk>
Date: Wed, 2 Apr 2025 10:13:57 +0100
Subject: [PATCH] cmakefile support for building with cmake 4.0
* asturmlechner 2025-11-29: considering upstream commit 368db480,
de-escalate min version but no reason to go below "APPLE" minimum
---
CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0f30177774..e197fa5f2a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,8 @@
-cmake_minimum_required(VERSION 2.8.12)
+if (NOT CMAKE_VERSION VERSION_LESS "4.0")
+ cmake_minimum_required(VERSION 3.23.0)
+else()
+ cmake_minimum_required(VERSION 2.8.12)
+endif()
if(APPLE)
# Building for Apple requires at least CMake 3.23.0