summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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