diff options
author | Sam James <sam@gentoo.org> | 2023-03-10 12:23:19 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-10 12:23:19 +0000 |
commit | 349ac256c44fb15a2fa5f13305179192a27a2e8f (patch) | |
tree | 0bdfc1fcf46286ebd37b253a9a7b57f1418ab80f /sci-libs/proj | |
parent | app-arch/zstd: drop 1.5.4 (diff) | |
download | gentoo-349ac256c44fb15a2fa5f13305179192a27a2e8f.tar.gz gentoo-349ac256c44fb15a2fa5f13305179192a27a2e8f.tar.bz2 gentoo-349ac256c44fb15a2fa5f13305179192a27a2e8f.zip |
sci-libs/proj: set BUILD_BENCHMARKS conditionally
Only defined for tests.
Closes: https://bugs.gentoo.org/900717
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/proj')
-rw-r--r-- | sci-libs/proj/proj-9.2.0.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
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 } |