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

Tyler Roscoe tyler at cryptio.net
Thu Jun 25 17:43:03 EDT 2009


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