proj: don't depend on googletest at build time (#37240)
* proj: v6 depends on googletest at build time * Have cmake block check for run_tests
This commit is contained in:
parent
49497dd254
commit
e5a48033bd
@ -124,7 +124,7 @@ def cmake_args(self):
|
||||
self.define_from_variant("ENABLE_TIFF", "tiff"),
|
||||
self.define_from_variant("ENABLE_CURL", "curl"),
|
||||
]
|
||||
if self.spec.satisfies("@6:"):
|
||||
if self.spec.satisfies("@6:") and self.pkg.run_tests:
|
||||
args.append(self.define("USE_EXTERNAL_GTEST", True))
|
||||
return args
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user