[CMake] Run/build custom command/target only when "input" files change
Mika.Rajala at patria.fi
Mika.Rajala at patria.fi
Tue Mar 8 05:48:36 EST 2011
Hi
I have created a custom command that generates source code for me.
There is a slight annoyance still, the command is excecuted every single
time i tell the compiler to build.
Can I make it so that it runs the program only when the source file
changes or the target file doesn't exist?
I looked at the documentation for add_custom_command and add_custom_target
but found no direct anwser from either.
I tried using dependencies but nothing came out of that for me.
-mika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110308/2dae9ae8/attachment.htm>
More information about the CMake
mailing list