summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMatthieu Dorier <mdorier@anl.gov>2022-01-12 16:13:37 +0000
committerGitHub <noreply@github.com>2022-01-12 17:13:37 +0100
commit04b9d87fcac6b87c49c2223499ed0f7e46938a3a (patch)
tree1e4d4d0b9d1f8656155da3244911ddcd42a631ba /var
parent868eaeb70e00293aec7f4e5956d8bfa19dc269ce (diff)
downloadspack-04b9d87fcac6b87c49c2223499ed0f7e46938a3a.tar.gz
spack-04b9d87fcac6b87c49c2223499ed0f7e46938a3a.tar.bz2
spack-04b9d87fcac6b87c49c2223499ed0f7e46938a3a.tar.xz
spack-04b9d87fcac6b87c49c2223499ed0f7e46938a3a.zip
gptune: fix build by setting compilers to mpi wrappers (#28235)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/gptune/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gptune/package.py b/var/spack/repos/builtin/packages/gptune/package.py
index e7d952efad..30573bd059 100644
--- a/var/spack/repos/builtin/packages/gptune/package.py
+++ b/var/spack/repos/builtin/packages/gptune/package.py
@@ -65,6 +65,9 @@ class Gptune(CMakePackage):
libs.joined(";"),
'-DCMAKE_Fortran_FLAGS=' + ''.join(fc_flags),
'-DBUILD_SHARED_LIBS=ON',
+ '-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx,
+ '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc,
+ '-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc,
]
return args