> 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.

Then show us some code on how you defined that command.

Eike
_______________________________________________
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