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

Marcel Loose loose at astron.nl
Thu Jun 25 06:23:33 EDT 2009


Hi all,

I have defined a custom command with add_custom_command(), and the
command inside may fail.

Is there a way to retrieve the error status of such a failing command,
like with RESULT_VARIABLE in execute_process()?

Best regards,
Marcel Loose.




More information about the CMake mailing list