dev-debug/lldb-mi: fix build with CMake 4

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk authored and jinqiang zhang committed 2026-07-18 20:01:23 +08:00
1 parent f72617df65
commit d48733f41d
2 files changed
+23 -1

No files matched your search

@@ -0,0 +1,17 @@
Bump cmake_minimum_required for CMake 4 compatibility.
CMake 4 dropped compatibility with cmake_minimum_required() versions below
3.5, so the 0.0.1 tarball (VERSION 3.4.3) can no longer be configured with
the CMake in the tree. Upstream fixed this on the main branch in PR #120;
use a range form here so the 0.0.1 release keeps building.
https://github.com/lldb-tools/lldb-mi/pull/120
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.4.3)
+cmake_minimum_required(VERSION 3.5...3.20)
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
+6 -1
View File
@@ -1,4 +1,4 @@
# Copyright 2022-2024 Gentoo Authors
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -20,3 +20,8 @@ DEPEND="
llvm-core/lldb
"
RDEPEND="${DEPEND}"
PATCHES=(
# CMake 4 no longer accepts cmake_minimum_required < 3.5
"${FILESDIR}"/${P}-cmake4.patch
)