From a29fae15e7d5000fec5c2025b4a7d0344ebe2595 Mon Sep 17 00:00:00 2001 From: "John W. Parent" <45471568+johnwparent@users.noreply.github.com> Date: Tue, 9 Jan 2024 20:23:26 -0500 Subject: [PATCH] Vtk: add option to build examples(#42022) --- var/spack/repos/builtin/packages/vtk/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py index 1a2fa8786d3..493dce64fce 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 @@ def cmake_args(self): ] ) + cmake_args.append(self.define_from_variant("VTK_BUILD_EXAMPLES", "examples")) + return cmake_args