mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
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:
parent
3ba318e113
commit
9305f5dd28
@ -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
|
||||
|
||||
|
||||
13
dev-libs/cJSON/files/1.7.18-cmake4.patch
Normal file
13
dev-libs/cJSON/files/1.7.18-cmake4.patch
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user