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


It would attach them to the .c file.



On Thu, Mar 18, 2010 at 7:49 PM, Bill Hoffman <bill.hoff...@kitware.com <mailto:bill.hoff...@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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to