From 285538a78d9b9e748491ea9d9cbc099c73682593 Mon Sep 17 00:00:00 2001 From: Jon Rood Date: Tue, 2 Jan 2018 14:14:22 -0700 Subject: [PATCH] Tioga package: Explicitly list MPI compilers for Cmake (#6741) --- var/spack/repos/builtin/packages/tioga/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/tioga/package.py b/var/spack/repos/builtin/packages/tioga/package.py index 7d770e3437..2901f3e7ca 100644 --- a/var/spack/repos/builtin/packages/tioga/package.py +++ b/var/spack/repos/builtin/packages/tioga/package.py @@ -48,7 +48,10 @@ def cmake_args(self): options = [ '-DBUILD_SHARED_LIBS:BOOL=%s' % ( - 'ON' if '+shared' in spec else 'OFF') + 'ON' if '+shared' in spec else 'OFF'), + '-DMPI_CXX_COMPILER:PATH=%s' % spec['mpi'].mpicxx, + '-DMPI_C_COMPILER:PATH=%s' % spec['mpi'].mpicc, + '-DMPI_Fortran_COMPILER:PATH=%s' % spec['mpi'].mpifc ] return options