<div dir="ltr">On Thu, Jun 28, 2018 at 7:12 AM Jim Lloyd <<a href="mailto:jim.lloyd@etagen.com">jim.lloyd@etagen.com</a>> wrote:<br><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 dir="ltr">[...]<br><div>But if I make a trivial project that simply includes yaml-cpp as a dependency, the generated compile commands use `-isystem` to include the yaml-cpp headers.</div><div><br></div><div>Is this a bug in CMake? </div><div><br></div><div>Also, is there any way I may be able to work around this problem with CMake 3.10? I would be happy to globally force the use of `-I` for all include directories.</div></div></blockquote><div><br></div><div>I think the question and a potential work around are covered by <a href="https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#include-directories-and-usage-requirements">https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#include-directories-and-usage-requirements</a></div><div>Specifically the paragraph close to the end starting with "When the INTERFACE_INCLUDE_DIRECTORIES of an imported target...".</div><div><br></div><div>Basically include directories inherited from imported targets are implicitly "SYSTEM" by default.</div><div><br></div><div>Nils</div></div></div>