summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-10 21:17:33 +0100
committerSam James <sam@gentoo.org>2023-05-10 21:19:32 +0100
commitbda61b8496d6d7d698797f2451e5235abab34628 (patch)
treede74eb7b9390757d38420a4d42d423a7048f5c73 /sci-libs/gdal
parentsys-kernel/gentoo-sources: drop 6.3.1 (diff)
downloadgentoo-bda61b8496d6d7d698797f2451e5235abab34628.tar.gz
gentoo-bda61b8496d6d7d698797f2451e5235abab34628.tar.bz2
gentoo-bda61b8496d6d7d698797f2451e5235abab34628.zip
sci-libs/gdal: make USE_EXTERNAL_GTEST conditional on tests
Closes: https://bugs.gentoo.org/906092 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/gdal')
-rw-r--r--sci-libs/gdal/gdal-3.7.0.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/sci-libs/gdal/gdal-3.7.0.ebuild b/sci-libs/gdal/gdal-3.7.0.ebuild
index ef7fc667de4d..7015e10d415d 100644
--- a/sci-libs/gdal/gdal-3.7.0.ebuild
+++ b/sci-libs/gdal/gdal-3.7.0.ebuild
@@ -122,7 +122,6 @@ src_configure() {
-DENABLE_IPO=OFF
-DGDAL_USE_EXTERNAL_LIBS=ON
-DGDAL_USE_INTERNAL_LIBS=OFF
- -DUSE_EXTERNAL_GTEST=ON
-DBUILD_TESTING=$(usex test)
# bug #844874 and bug #845150
@@ -233,6 +232,10 @@ src_configure() {
#-Dtest_xop=$(usex cpu_flags_x86_xop)
)
+ if use test ; then
+ mycmakeargs+=( -DUSE_EXTERNAL_GTEST=ON )
+ fi
+
cmake_src_configure
}