diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 9716dc638..06ba069cc 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -436,7 +436,7 @@ bool cmSystemTools::RunSingleCommand( } } } - else + else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Error) { std::cerr << cmsysProcess_GetErrorString(cp) << "\n"; result = false;