swfft: inject CC/CXX (#6666)

This commit is contained in:
Christoph Junghans 2017-12-12 17:25:48 -07:00 committed by GitHub
parent 80284617a5
commit e80a27d713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,17 @@ class Swfft(MakefilePackage):
tags = ['proxy-app', 'ecp-proxy-app'] tags = ['proxy-app', 'ecp-proxy-app']
@property
def build_targets(self):
targets = []
spec = self.spec
targets.append('DFFT_MPI_CC=%s' % spec['mpi'].mpicc)
targets.append('DFFT_MPI_CXX=%s' % spec['mpi'].mpicxx)
targets.append('DFFT_MPI_F90=%s' % spec['mpi'].mpifc)
return targets
def install(self, spec, prefix): def install(self, spec, prefix):
mkdir(prefix.bin) mkdir(prefix.bin)
install('build/CheckDecomposition', prefix.bin) install('build/CheckDecomposition', prefix.bin)