Update flecsi package.py (#11442)

* Update flecsi package.py

* Update package.py

* Update package.py

* Update package.py
This commit is contained in:
ktsai7 2019-05-15 15:29:08 -06:00 committed by Christoph Junghans
parent bfb0f57492
commit f68f5e3014

View file

@ -24,18 +24,27 @@ class Flecsi(CMakePackage):
variant('mpi', default=True, variant('mpi', default=True,
description='Build on top of mpi conduit for mpi inoperability') description='Build on top of mpi conduit for mpi inoperability')
variant('legion', default=False)
depends_on("cmake@3.1:", type='build') depends_on("cmake@3.1:")
depends_on("mpi")
depends_on("gasnet~pshm")
depends_on("legion")
depends_on("legion+shared", when='~mpi') depends_on("legion+shared", when='~mpi')
depends_on("legion+shared+mpi", when='+mpi') depends_on("legion+shared+mpi", when='+mpi')
depends_on("parmetis") depends_on("boost@1.59.0 cxxstd=11 +program_options")
depends_on("metis@5.1.0:")
depends_on("parmetis@4.0.3:")
depends_on("caliper")
depends_on("gotcha")
depends_on("graphviz")
def cmake_args(self): def cmake_args(self):
options = ['-DENABLE_UNIT_TESTS=ON'] options = ['-DCMAKE_BUILD_TYPE=debug -DFLECSI_RUNTIME_MODEL=mpi']
if '+mpi' in self.spec: if '~mpi' in self.spec:
options.extend([ options.extend([
'-DENABLE_MPI=ON', '-DENABLE_MPI=OFF',
]) ])
return options return options