diff options
author | Christoph Junghans <christoph.junghans@gmail.com> | 2017-12-12 17:25:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 17:25:48 -0700 |
commit | e80a27d71397586b861ecef383dd5616ad7a2ec5 (patch) | |
tree | 24e15f98ec33523a734e7470b127dc11c7342806 /var | |
parent | 80284617a5ab56a70056664287abaee8086dbea9 (diff) | |
download | spack-e80a27d71397586b861ecef383dd5616ad7a2ec5.tar.gz spack-e80a27d71397586b861ecef383dd5616ad7a2ec5.tar.bz2 spack-e80a27d71397586b861ecef383dd5616ad7a2ec5.tar.xz spack-e80a27d71397586b861ecef383dd5616ad7a2ec5.zip |
swfft: inject CC/CXX (#6666)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/swfft/package.py | 11 |
1 files changed, 11 insertions, 0 deletions
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) |