<div dir="ltr">Aha, I found a CMake issue that might be related to this (<a href="https://gitlab.kitware.com/cmake/cmake/issues/16830">https://gitlab.kitware.com/cmake/cmake/issues/16830</a>).  I'll give it a read-through to see if it addresses the same problem.  Perhaps it has something to do with the use of cmake_custom_command(... IMPLICIT_DEPENDS ...) in vtkWrapPython.cmake.  That would explain why only wrapper targets are affected.<div><br></div><div> - David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 2, 2018 at 10:22 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>Over the past few months, I've thrice had build failures when headers were removed from the source code, but "make" still reported a dependency on the header even after I re-ran cmake.</div><div><br></div><div>For example, recently vtk_libhdf5_mangle.h was removed and replaced with vtk_hdf5_mangle.h, but it still appeared in "depend.make" for vtkIOAMRPythonD (but for some reason it didn't appear in the depend.make for other targets that had a dependency on vtkhdf5).</div><div><br></div><div>I can always fix the problem by doing a clean build, but I'm wondering, has anyone else has seen phantom dependencies like this for the Makefile generator?  Is there a reason why cmake would sometimes not correctly update depend.make after all references to a header are removed from the source?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div></font></span></div>
</blockquote></div><br></div>