From 349ac256c44fb15a2fa5f13305179192a27a2e8f Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 10 Mar 2023 12:23:19 +0000 Subject: sci-libs/proj: set BUILD_BENCHMARKS conditionally Only defined for tests. Closes: https://bugs.gentoo.org/900717 Signed-off-by: Sam James --- sci-libs/proj/proj-9.2.0.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sci-libs/proj') diff --git a/sci-libs/proj/proj-9.2.0.ebuild b/sci-libs/proj/proj-9.2.0.ebuild index 41034b43cc17..367d9f835f46 100644 --- a/sci-libs/proj/proj-9.2.0.ebuild +++ b/sci-libs/proj/proj-9.2.0.ebuild @@ -49,7 +49,12 @@ src_configure() { -DENABLE_TIFF=$(usex tiff) ) - use test && mycmakeargs+=( -DUSE_EXTERNAL_GTEST=ON ) + if use test ; then + mycmakeargs+=( + -DUSE_EXTERNAL_GTEST=ON + -DBUILD_BENCHMARKS=OFF + ) + fi cmake_src_configure } -- cgit v1.2.3-65-gdbad