summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <patrick.mclean@sony.com>2020-12-07 10:20:01 -0800
committerPatrick McLean <chutzpah@gentoo.org>2020-12-07 10:20:12 -0800
commitb65439c5a4ec2231b1023aefdc0f143106b20cd5 (patch)
treef4830974a7761ad6454b1a420814f4520a6816bc /dev-libs/simdjson
parentapp-i18n/ibus-pinyin: Use slotted Lua. (diff)
downloadgentoo-b65439c5a4ec2231b1023aefdc0f143106b20cd5.tar.gz
gentoo-b65439c5a4ec2231b1023aefdc0f143106b20cd5.tar.bz2
gentoo-b65439c5a4ec2231b1023aefdc0f143106b20cd5.zip
dev-libs/simdjson-0.7.0-r3: avoid harmless warning (bug #758764)
Closes: https://bugs.gentoo.org/758764 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-libs/simdjson')
-rw-r--r--dev-libs/simdjson/simdjson-0.7.0-r3.ebuild18
1 files changed, 13 insertions, 5 deletions
diff --git a/dev-libs/simdjson/simdjson-0.7.0-r3.ebuild b/dev-libs/simdjson/simdjson-0.7.0-r3.ebuild
index 9a29c8f04503..ed7b3f9d6f58 100644
--- a/dev-libs/simdjson/simdjson-0.7.0-r3.ebuild
+++ b/dev-libs/simdjson/simdjson-0.7.0-r3.ebuild
@@ -39,11 +39,19 @@ src_prepare() {
}
src_configure() {
- local mycmakeargs=(
- $(usex tools '' '-DSIMDJSON_JUST_LIBRARY=ON')
- -DSIMDJSON_GOOGLE_BENCHMARKS=OFF
- -DSIMDJSON_COMPETITION=OFF
- )
+ local -a mycmakeargs
+
+ if use tools; then
+ mycmakeargs+=(
+ -DSIMDJSON_JUST_LIBRARY=OFF
+ -DSIMDJSON_GOOGLE_BENCHMARKS=OFF
+ -DSIMDJSON_COMPETITION=OFF
+ )
+ else
+ mycmakeargs+=(
+ -DSIMDJSON_JUST_LIBRARY=ON
+ )
+ fi
cmake_src_configure
}