From e80a27d71397586b861ecef383dd5616ad7a2ec5 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Tue, 12 Dec 2017 17:25:48 -0700 Subject: [PATCH] swfft: inject CC/CXX (#6666) --- var/spack/repos/builtin/packages/swfft/package.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/var/spack/repos/builtin/packages/swfft/package.py b/var/spack/repos/builtin/packages/swfft/package.py index aeb7e00293..ce0b027c9e 100644 --- a/var/spack/repos/builtin/packages/swfft/package.py +++ b/var/spack/repos/builtin/packages/swfft/package.py @@ -43,6 +43,17 @@ class Swfft(MakefilePackage): 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): mkdir(prefix.bin) install('build/CheckDecomposition', prefix.bin)