Fixed DIY package missing MPI dependency (#14704)

This commit is contained in:
Matthieu Dorier 2020-01-31 20:01:17 +00:00 committed by GitHub
parent c029c8ff89
commit b7ee2d02e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,10 @@ class Diy(CMakePackage):
version('3.5.0', sha256='b3b5490441d521b6e9b33471c782948194bf95c7c3df3eb97bc5cf4530b91576')
version('master', branch='master')
depends_on('mpi')
def cmake_args(self):
args = ['-Dbuild_examples=off', '-Dbuild_tests=off']
args = ['-Dbuild_examples=off',
'-Dbuild_tests=off',
'-DCMAKE_CXX_COMPILER=%s' % self.spec['mpi'].mpicxx]
return args