summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2023-05-02 07:23:13 -0500
committerGitHub <noreply@github.com>2023-05-02 08:23:13 -0400
commite5a48033bded169a85e6ae68d2bc02958644cce7 (patch)
tree51651e1b64d9da79b1f2dee4c54093b27a6733e3 /var
parent49497dd2541731762145ee6d806a5b8d169734ab (diff)
downloadspack-e5a48033bded169a85e6ae68d2bc02958644cce7.tar.gz
spack-e5a48033bded169a85e6ae68d2bc02958644cce7.tar.bz2
spack-e5a48033bded169a85e6ae68d2bc02958644cce7.tar.xz
spack-e5a48033bded169a85e6ae68d2bc02958644cce7.zip
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
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/proj/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/proj/package.py b/var/spack/repos/builtin/packages/proj/package.py
index 6c62df373f..eb3c16d6ba 100644
--- a/var/spack/repos/builtin/packages/proj/package.py
+++ b/var/spack/repos/builtin/packages/proj/package.py
@@ -124,7 +124,7 @@ class CMakeBuilder(BaseBuilder, cmake.CMakeBuilder):
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