Add processing of CMake errors to build and test processes