diff --git a/var/spack/repos/builtin/packages/openfast/package.py b/var/spack/repos/builtin/packages/openfast/package.py index 74d1881de9..cf37e24a81 100644 --- a/var/spack/repos/builtin/packages/openfast/package.py +++ b/var/spack/repos/builtin/packages/openfast/package.py @@ -81,6 +81,9 @@ def cmake_args(self): if '+cxx' in spec: options.extend([ + '-DMPI_CXX_COMPILER:PATH=%s' % spec['mpi'].mpicxx, + '-DMPI_C_COMPILER:PATH=%s' % spec['mpi'].mpicc, + '-DMPI_Fortran_COMPILER:PATH=%s' % spec['mpi'].mpifc, '-DHDF5_ROOT:PATH=%s' % spec['hdf5'].prefix, '-DYAML_ROOT:PATH=%s' % spec['yaml-cpp'].prefix, ])