That's an interesting idea. Would this step attach the dependencies to the .c file or the .bc file?<div><br></div><div><br><br><div class="gmail_quote">On Thu, Mar 18, 2010 at 7:49 PM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">I have a hack of an idea that might work....</div></div>
<br>
If you could changed your bc -> c generator to put in the #include lines , but with if blockers around it:<br>
<br>
#if FOOL_CMAKE_DEPEND_SCANNER<br>
#include "foo.h"<br>
#include "bar.h"<br>
#endif<br>
<br>
Since CMake ignores #if directives will depend on foo and bar, but the c compiler will not expand them.<br><font color="#888888">
<br>
-Bill<br>
</font></blockquote></div><br></div>