Propagate SCR resource_manager flag to libyogrt dependency (#21168)

* When the SCR spec specifies a resource_manager=SLURM or LSF flag, propagate the spec through to
the libyogrt scheduler=slurm or lsf

* Use libyogrt default scheduler option when the SCR spec does not specify LSF or SLURM
This commit is contained in:
Robert Brunner 2021-01-20 15:51:46 -06:00 committed by GitHub
parent 0e2fa561f3
commit 966f6bc2d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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