Note that it is possible to vendor VTK (ParaView does it), but it is not as easy as add_subdirectory
(and therefore FetchContent
is not an option). Instead, ParaView “knows” what VTK does in various situations and uses its own CMake variables to control its build (e.g., VTK_USE_MPI
is just set to the value of PARAVIEW_USE_MPI
and not offered independently). VTK’s top-level CMakeLists.txt
is set up to be the top-level and not designed to integrate as a component of another project.
1 Like