summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2018-01-02 14:06:25 -0700
committerscheibelp <scheibel1@llnl.gov>2018-01-02 13:06:25 -0800
commit2812644ed7e6d3106c3a3e04019225437797b69f (patch)
tree4476fb7cac0985ac2e3abd93a815ee9e4488fa81
parent5dd5dc01c2aa7720f4e06765e5a51812fc395bb5 (diff)
downloadspack-2812644ed7e6d3106c3a3e04019225437797b69f.tar.gz
spack-2812644ed7e6d3106c3a3e04019225437797b69f.tar.bz2
spack-2812644ed7e6d3106c3a3e04019225437797b69f.tar.xz
spack-2812644ed7e6d3106c3a3e04019225437797b69f.zip
paraview package: Explicitly specify MPI compilers in Cmake (#6738)
-rw-r--r--var/spack/repos/builtin/packages/paraview/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py
index 4be48a1b50..bf16bf361f 100644
--- a/var/spack/repos/builtin/packages/paraview/package.py
+++ b/var/spack/repos/builtin/packages/paraview/package.py
@@ -151,7 +151,10 @@ class Paraview(CMakePackage):
if '+mpi' in spec:
cmake_args.extend([
'-DPARAVIEW_USE_MPI:BOOL=ON',
- '-DMPIEXEC:FILEPATH=%s/bin/mpiexec' % spec['mpi'].prefix
+ '-DMPIEXEC:FILEPATH=%s/bin/mpiexec' % spec['mpi'].prefix,
+ '-DMPI_CXX_COMPILER:PATH=%s' % spec['mpi'].mpicxx,
+ '-DMPI_C_COMPILER:PATH=%s' % spec['mpi'].mpicc,
+ '-DMPI_Fortran_COMPILER:PATH=%s' % spec['mpi'].mpifc
])
if 'darwin' in spec.architecture: