[CMake] Bug in EXECUTE_PROCESS?

Josef Karthauser joe.karthauser at geomerics.com
Tue Dec 4 07:49:26 EST 2007


Is this a bug?

 

 EXECUTE_PROCESS(

COMMAND badcmd_that_doesnt_exist

                                ERROR_VARIABLE ERROR

)

IF(ERROR)

MESSAGE(FATAL_ERROR "Error! Command doesn't exist.")

ENDIF(ERROR)

 

as the fatal_error is never raised.

 

If not, what's the canonical way of reliably determining whether the
process succeeded or failed?

 

Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071204/47671876/attachment.htm


More information about the CMake mailing list