[CMake] removing invalid output

Juan Sanchez Juan.Sanchez at amd.com
Thu Sep 27 10:39:28 EDT 2007


I am using ADD_CUSTOM_COMMAND to produce an output.

Unfortunately, if the commands in it fail, the OUTPUT.  Hence the OUTPUT
is up to date, even though it is invalid.  Is there a way to tell
ADD_CUSTOM_COMMAND to remove its output when it fails?

Thanks,

Juan




More information about the CMake mailing list