[CMake] How to get exit status of failing custom_command?

Marcel Loose loose at astron.nl
Thu Jun 25 17:55:50 EDT 2009


No, I'm not sure. I deduced that the command 'cmake -E copy ...' failed,
because the file was not present in the destination directory, which (by
the way) needed to be created. So maybe cmake does not return with an
error status when the file copy fails?

Regards,
Marcel Loose.

On Thu, 2009-06-25 at 14:43 -0700, Tyler Roscoe wrote:
> On Thu, Jun 25, 2009 at 11:39:41PM +0200, Marcel Loose wrote:
> > However, if the command fails during make, I would assume that make
> > would exit prematurely with an error status, but that didn't happen.
> 
> This is what I would expect as well. Are you sure that your command is
> actually returning a non-zero error code when it fails? Are you giving
> make the -k flag (keep going after error)?
> 
> tyler



More information about the CMake mailing list