[CMake] How to guarntee the sequence of build if no target can be used

idlecat511 at gmail.com idlecat511 at gmail.com
Wed May 27 19:01:51 EDT 2009


Hi,

This situation is:

foo.h is generated from foo.x. And foo.h is included by bar.h. And then  
bar.h is included by a lot of c files. So actually every c files including  
bar.h depends on foo.h.
But the file number is so big that I don't want to add dependency for each  
one.

How can I specify foo.x is generated before all the c files being compiled?  
It seems add_custom_target works but it will regenerate foo.h every time  
even the foo.x is not modified.

TIA,

--
Tiger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090527/29d26e2a/attachment.htm>


More information about the CMake mailing list