Header depends for Python wrapper targets aren't updated
When header files are removed from VTK, they sometimes still appear in the "make" dependencies of the Python wrapper library/module targets. The result is that removing a header file might cause the build to fail, with "make" complaining that the header file is needed and is missing.
This occurs because the dependency is generated by the add_custom_command() call in vtkWrapPython.cmake, which uses IMPLICIT_DEPENDS to scan the wrapped header for #include directives. The list of header dependencies is updated only when the custom command is updated, and removing a header file does not trigger such an update.
A discussion, and a possible fix, is provided in cmake/cmake#16830.