PROJ: googletest only needed to test (#36691)

This commit is contained in:
Adam J. Stewart 2023-04-12 00:01:52 -05:00 committed by GitHub
parent e3e395769d
commit 60b573727e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ class Proj(CMakePackage, AutotoolsPackage):
depends_on("sqlite@3.11:", when="@6:")
depends_on("libtiff@4:", when="@7:+tiff")
depends_on("curl@7.29:", when="@7:+curl")
depends_on("googletest", when="@6:", type="test")
depends_on("googletest@1.8:", when="@6:", type="test")
build_system(
conditional("autotools", when="@:8"), conditional("cmake", when="@5:"), default="cmake"
@ -132,7 +132,7 @@ class AutotoolsBuilder(autotools.AutotoolsBuilder, BaseBuilder):
def configure_args(self):
args = []
if self.spec.satisfies("@6:"):
if self.spec.satisfies("@6:") and self.pkg.run_tests:
args.append("--with-external-gtest")
if self.spec.satisfies("@7:"):