summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/cJSON/cJSON-1.7.14.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-libs/cJSON/cJSON-1.7.14.ebuild b/dev-libs/cJSON/cJSON-1.7.14.ebuild
index 275c5cc7aef1..f7416639516b 100644
--- a/dev-libs/cJSON/cJSON-1.7.14.ebuild
+++ b/dev-libs/cJSON/cJSON-1.7.14.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -15,6 +15,12 @@ KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
+src_prepare() {
+ cmake_src_prepare
+
+ sed -i -e '/-Werror/d' CMakeLists.txt || die
+}
+
src_configure() {
local mycmakeargs=(
-DENABLE_CJSON_TEST=$(usex test)