dev-libs/cJSON: Add patch to fix build with cmake-4

Closes: https://bugs.gentoo.org/954223
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2025-04-23 11:05:50 -04:00
parent 3ba318e113
commit 9305f5dd28
No known key found for this signature in database
GPG Key ID: ACEB29740C9A4E97
2 changed files with 17 additions and 0 deletions

View File

@ -15,6 +15,10 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv sparc x86"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PV}-cmake4.patch
)
src_prepare() {
cmake_src_prepare

View File

@ -0,0 +1,13 @@
Set cmake_minimum_required(VERSION) to 3.10 so that it works with cmake-4.
Bug: https://bugs.gentoo.org/954223
--- cJSON-1.7.18/CMakeLists.txt~ 2025-04-22 21:00:57.000000000 +0200
+++ cJSON-1.7.18/CMakeLists.txt 2025-04-22 21:01:15.694382211 +0200
@@ -1,5 +1,5 @@
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.10)
project(cJSON
VERSION 1.7.18