commit: 349ac256c44fb15a2fa5f13305179192a27a2e8f Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Mar 10 12:23:19 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Mar 10 12:23:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=349ac256
sci-libs/proj: set BUILD_BENCHMARKS conditionally Only defined for tests. Closes: https://bugs.gentoo.org/900717 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/proj/proj-9.2.0.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 }