summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLars Bilke <lars.bilke@ufz.de>2018-10-12 11:33:01 +0200
committerAxel Huebl <axel.huebl@plasma.ninja>2018-10-12 11:33:01 +0200
commit6db1472c58b9fa6280c93b4711d07266e766e27e (patch)
treee66dcac0d973bad6bfad7c2199466a17cb2bcc49 /var
parent24c75d39e44eb8f27c000a2edeac3c52b0bd0ed2 (diff)
downloadspack-6db1472c58b9fa6280c93b4711d07266e766e27e.tar.gz
spack-6db1472c58b9fa6280c93b4711d07266e766e27e.tar.bz2
spack-6db1472c58b9fa6280c93b4711d07266e766e27e.tar.xz
spack-6db1472c58b9fa6280c93b4711d07266e766e27e.zip
vtk: Added mpi variant (#9494)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/vtk/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py
index b71c38485f..5d9650c16a 100644
--- a/var/spack/repos/builtin/packages/vtk/package.py
+++ b/var/spack/repos/builtin/packages/vtk/package.py
@@ -48,6 +48,7 @@ class Vtk(CMakePackage):
variant('osmesa', default=False, description='Enable OSMesa support')
variant('python', default=False, description='Enable Python support')
variant('qt', default=False, description='Build with support for Qt')
+ variant('mpi', default=True, description='Enable MPI support')
# Haru causes trouble on Fedora and Ubuntu in v8.1.1
# See https://bugzilla.redhat.com/show_bug.cgi?id=1460059#c13
@@ -74,6 +75,8 @@ class Vtk(CMakePackage):
# VTK will need Qt5OpenGL, and qt needs '-opengl' for that
depends_on('qt+opengl', when='+qt')
+ depends_on('mpi', when='+mpi')
+
depends_on('libharu', when='+haru')
depends_on('expat')
@@ -167,6 +170,12 @@ class Vtk(CMakePackage):
'-DModule_vtkGUISupportQtOpenGL:BOOL=ON',
])
+ if '+mpi' in spec:
+ cmake_args.extend([
+ '-DVTK_Group_MPI:BOOL=ON',
+ '-DVTK_USE_SYSTEM_DIY2=OFF'
+ ])
+
if '+osmesa' in spec:
prefix = spec['mesa'].prefix
osmesa_include_dir = prefix.include