summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/grep/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/grep/package.py b/var/spack/repos/builtin/packages/grep/package.py
index 61e7b2db8c..119088ebf5 100644
--- a/var/spack/repos/builtin/packages/grep/package.py
+++ b/var/spack/repos/builtin/packages/grep/package.py
@@ -20,7 +20,8 @@ class Grep(AutotoolsPackage):
build_directory = "spack-build"
- depends_on("pcre", when="+pcre")
+ depends_on("pcre2", when="@3.8:+pcre")
+ depends_on("pcre", when="@:3.7+pcre")
def configure_args(self):
args = []