summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJohn W. Parent <45471568+johnwparent@users.noreply.github.com>2024-01-09 20:23:26 -0500
committerGitHub <noreply@github.com>2024-01-09 18:23:26 -0700
commita29fae15e7d5000fec5c2025b4a7d0344ebe2595 (patch)
tree5e520f777a3ddb687bdc8f8d9925bee3cb3bb14f /var
parentf3305862f34ef1ed734c50d9cc199b0f32c3f94b (diff)
downloadspack-a29fae15e7d5000fec5c2025b4a7d0344ebe2595.tar.gz
spack-a29fae15e7d5000fec5c2025b4a7d0344ebe2595.tar.bz2
spack-a29fae15e7d5000fec5c2025b4a7d0344ebe2595.tar.xz
spack-a29fae15e7d5000fec5c2025b4a7d0344ebe2595.zip
Vtk: add option to build examples(#42022)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/vtk/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py
index 1a2fa8786d..493dce64fc 100644
--- a/var/spack/repos/builtin/packages/vtk/package.py
+++ b/var/spack/repos/builtin/packages/vtk/package.py
@@ -56,6 +56,7 @@ class Vtk(CMakePackage):
variant("xdmf", default=False, description="Build XDMF file support")
variant("ffmpeg", default=False, description="Build with FFMPEG support")
variant("mpi", default=True, description="Enable MPI support")
+ variant("examples", default=False, description="Enable building & installing the VTK examples")
patch("gcc.patch", when="@6.1.0")
# patch to fix some missing stl includes
@@ -474,4 +475,6 @@ class Vtk(CMakePackage):
]
)
+ cmake_args.append(self.define_from_variant("VTK_BUILD_EXAMPLES", "examples"))
+
return cmake_args