[CMake] C/C++ dependency scanner

Steven Wilson steven.wesley.wilson at gmail.com
Thu Mar 18 22:36:00 EDT 2010


That's an interesting idea.   Would this step attach the dependencies to the
.c file or the .bc file?



On Thu, Mar 18, 2010 at 7:49 PM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

> I have a hack of an idea that might work....
>
> If you could changed your bc -> c generator to put in the #include lines ,
> but with if blockers around it:
>
> #if FOOL_CMAKE_DEPEND_SCANNER
> #include "foo.h"
> #include "bar.h"
> #endif
>
> Since CMake ignores #if directives will depend on foo and bar, but the c
> compiler will not expand them.
>
> -Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100318/f6e9dd03/attachment.htm>


More information about the CMake mailing list