<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>>What generator are you using?<br></div></div></blockquote><div><br></div><div>Ninja</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div></div><div>That thread seems to contain a lot of misunderstandings about the issue.<br></div><div><br></div><div>If you are using the Makefile generator then refer to <a href="https://stackoverflow.com/questions/7461000/handling-header-files-dependencies-with-cmake" target="_blank">https://stackoverflow.com/questions/7461000/handling-header-files-dependencies-with-cmake</a>. After building the project for the first time inspect the <code>depend.make files that are generated to verify if the headers are being picked up correctly as a dependency.</code></div></div></blockquote><div><br></div><div>Thanks, I made a mistake and was touching the wrong header file. Sorry about that. Dependencies are correctly generated and working. There seems to be no need to add the header files to the list of sources.</div><div><br></div><div>BTW It seems that dependencies for header files in the same path as the sources are generated implicitly. Is that expected?</div><div><br></div><div>Thanks for your help. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div> </div></div></blockquote></div></div>