Vtk: add option to build examples(#42022)

This commit is contained in:
John W. Parent 2024-01-09 20:23:26 -05:00 committed by GitHub
parent f3305862f3
commit a29fae15e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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