ENH: Return exit code during execution of cmake script, and abort if error