Changed from setting C compiler to setting C++ compiler (#6011)

This commit is contained in:
mmwolf 2017-10-29 07:42:27 -06:00 committed by Christoph Junghans
parent f6a8ae230e
commit 73fb02229a

View File

@ -43,10 +43,10 @@ class Minitri(MakefilePackage):
def build_targets(self): def build_targets(self):
targets = [] targets = []
if '+mpi' in self.spec: if '+mpi' in self.spec:
targets.append('CC={0}'.format(self.spec['mpi'].mpicc)) targets.append('CCC={0}'.format(self.spec['mpi'].mpicxx))
targets.append('--directory=miniTri/linearAlgebra/MPI') targets.append('--directory=miniTri/linearAlgebra/MPI')
else: else:
targets.append('CC={0}'.format(self.compiler.cc)) targets.append('CCC={0}'.format(self.compiler.cxx))
targets.append('--directory=miniTri/linearAlgebra/serial') targets.append('--directory=miniTri/linearAlgebra/serial')
targets.append('--file=Makefile') targets.append('--file=Makefile')