From 6db1472c58b9fa6280c93b4711d07266e766e27e Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Fri, 12 Oct 2018 11:33:01 +0200 Subject: [PATCH] vtk: Added mpi variant (#9494) --- var/spack/repos/builtin/packages/vtk/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ def cmake_args(self): '-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