diff --git a/var/spack/repos/builtin/packages/fms/package.py b/var/spack/repos/builtin/packages/fms/package.py index 95465966a5683e..4bfbe8426fd96b 100644 --- a/var/spack/repos/builtin/packages/fms/package.py +++ b/var/spack/repos/builtin/packages/fms/package.py @@ -112,4 +112,8 @@ def cmake_args(self): self.define_from_variant("USE_DEPRECATED_IO", "deprecated_io"), ] + args.append(self.define("CMAKE_C_COMPILER", self.spec["mpi"].mpicc)) + args.append(self.define("CMAKE_CXX_COMPILER", self.spec["mpi"].mpicxx)) + args.append(self.define("CMAKE_Fortran_COMPILER", self.spec["mpi"].mpifc)) + return args