summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorUtkarsh Ayachit <utkarsh.ayachit@kitware.com>2020-05-18 13:59:40 -0400
committerGitHub <noreply@github.com>2020-05-18 12:59:40 -0500
commit154a4428176ec3024529972478db71d351e57c48 (patch)
treec054978dd868887c665decab2472c89e06097d38 /var
parentd957c621ef3982347f5d1e17ede34f679400ea1f (diff)
downloadspack-154a4428176ec3024529972478db71d351e57c48.tar.gz
spack-154a4428176ec3024529972478db71d351e57c48.tar.bz2
spack-154a4428176ec3024529972478db71d351e57c48.tar.xz
spack-154a4428176ec3024529972478db71d351e57c48.zip
paraview: use kits by default (#16698)
Adding a variant to enable/disable kits and making the default use kits.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/paraview/package.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py
index 48dff877e0..f9e10b1fba 100644
--- a/var/spack/repos/builtin/packages/paraview/package.py
+++ b/var/spack/repos/builtin/packages/paraview/package.py
@@ -47,6 +47,8 @@ class Paraview(CMakePackage, CudaPackage):
variant('hdf5', default=False, description="Use external HDF5")
variant('shared', default=True,
description='Builds a shared version of the library')
+ variant('kits', default=True,
+ description='Use module kits')
conflicts('+python', when='+python3')
conflicts('+python', when='@5.6:')
@@ -271,6 +273,17 @@ class Paraview(CMakePackage, CudaPackage):
'-DPARAVIEW_DO_UNIX_STYLE_INSTALLS:BOOL=ON',
])
+ if '+kits' in spec:
+ if spec.satisfies('@5.0:5.6'):
+ cmake_args.append(
+ '-DVTK_ENABLE_KITS:BOOL=ON')
+ elif spec.satisfies('@5.7'):
+ cmake_args.append(
+ '-DPARAVIEW_ENABLE_KITS:BOOL=ON')
+ else:
+ cmake_args.append(
+ '-DPARAVIEW_BUILD_WITH_KITS:BOOL=ON')
+
# Hide git from Paraview so it will not use `git describe`
# to find its own version number
if spec.satisfies('@5.4.0:5.4.1'):