PROJ: googletest only needed to test (#36691)
This commit is contained in:
parent
e3e395769d
commit
60b573727e
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ class Proj(CMakePackage, AutotoolsPackage):
|
||||||
depends_on("sqlite@3.11:", when="@6:")
|
depends_on("sqlite@3.11:", when="@6:")
|
||||||
depends_on("libtiff@4:", when="@7:+tiff")
|
depends_on("libtiff@4:", when="@7:+tiff")
|
||||||
depends_on("curl@7.29:", when="@7:+curl")
|
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(
|
build_system(
|
||||||
conditional("autotools", when="@:8"), conditional("cmake", when="@5:"), default="cmake"
|
conditional("autotools", when="@:8"), conditional("cmake", when="@5:"), default="cmake"
|
||||||
|
@ -132,7 +132,7 @@ class AutotoolsBuilder(autotools.AutotoolsBuilder, BaseBuilder):
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
args = []
|
args = []
|
||||||
|
|
||||||
if self.spec.satisfies("@6:"):
|
if self.spec.satisfies("@6:") and self.pkg.run_tests:
|
||||||
args.append("--with-external-gtest")
|
args.append("--with-external-gtest")
|
||||||
|
|
||||||
if self.spec.satisfies("@7:"):
|
if self.spec.satisfies("@7:"):
|
||||||
|
|
Loading…
Reference in a new issue