flecsale: add missing dependencies and fix flecsi runtime model (#9774)

This commit is contained in:
Michael Kuhn 2018-11-22 19:38:59 +01:00 committed by Adam J. Stewart
parent 0eb8cd9a8f
commit ffaf617e74

View file

@ -18,11 +18,16 @@ class Flecsale(CMakePackage):
variant('mpi', default=True,
description='Build on top of mpi conduit for mpi inoperability')
depends_on("pkgconfig", type='build')
depends_on("cmake@3.1:", type='build')
depends_on("flecsi~mpi", when='~mpi')
depends_on("flecsi+mpi", when='+mpi')
depends_on("python")
depends_on("openssl")
depends_on("boost~mpi", when='~mpi')
depends_on("boost+mpi", when='+mpi')
depends_on("exodusii~mpi", when='~mpi')
depends_on("exodusii+mpi", when='+mpi')
def cmake_args(self):
options = [
@ -34,7 +39,7 @@ def cmake_args(self):
if '+mpi' in self.spec:
options.extend([
'-DENABLE_MPI=ON',
'-DFLECSI_RUNTIME_MODEL=mpilegion'
'-DFLECSI_RUNTIME_MODEL=legion'
])
return options