Makefiles: Incorrect header dependencies when duplicate header file basenames are found
I have a number of C++ files that include some boost headers. Ultimately, this leads to the including of the file <boost/predef/version.h>
, so these C++ files will get a dependency on this header in the depend.make file.
I notice, however, that when my project itself also has a version.h
file, that is not at all included in said C++ files, that the dependency is created for these C++ files on the project's version.h
file, and not on the boost header. (in this case the project version.h file is generated, that may complicate matters)
When I renamed the project's version.h
file to something more specific, I got the boost dependency.
Edited by Ben Boeckel