dev-games/recastnavigation: fix build with cmake 4

Closes: https://bugs.gentoo.org/955845
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/42078
Closes: https://github.com/gentoo/gentoo/pull/42078
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexey Sokolov
2025-05-13 21:30:56 +01:00
committed by Sam James
parent e7e0189b79
commit 35b04648a3
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
https://github.com/recastnavigation/recastnavigation/pull/775
https://bugs.gentoo.org/955845
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.1...4.0)
project(RecastNavigation)

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -18,6 +18,10 @@ RESTRICT="!test? ( test )"
DEPEND="test? ( dev-cpp/catch:0 )"
PATCHES=(
"${FILESDIR}/${P}-cmake4.patch"
)
src_prepare() {
rm -r Tests/Contrib/catch2 || die