summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/scr/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/scr/package.py b/var/spack/repos/builtin/packages/scr/package.py
index 301c08943d..6821f8c5ed 100644
--- a/var/spack/repos/builtin/packages/scr/package.py
+++ b/var/spack/repos/builtin/packages/scr/package.py
@@ -50,6 +50,8 @@ class Scr(CMakePackage):
variant('libyogrt', default=True,
description="Build SCR with libyogrt for get_time_remaining.")
+ depends_on('libyogrt scheduler=slurm', when="+libyogrt resource_manager=SLURM")
+ depends_on('libyogrt scheduler=lsf', when="+libyogrt resource_manager=LSF")
depends_on('libyogrt', when="+libyogrt")
# MySQL not yet in spack