Return non-zero status from cmake script when build or test fails