ENH: clean up annoying output from rc tool in VS9

This commit is contained in:
Bill Hoffman 2008-03-26 22:34:27 -04:00
parent 6502177306
commit b487030bd9
1 changed files with 8 additions and 3 deletions

View File

@ -3936,10 +3936,15 @@ bool cmake::RunCommand(const char* comment,
// use rc command to create .res file
cmSystemTools::RunSingleCommand(command,
&output,
&retCode);
if(verbose)
&retCode, 0, false);
// always print the output of the command, unless
// it is the dumb rc command banner, but if the command
// returned an error code then print the output anyway as
// the banner may be mixed with some other important information.
if(output.find("Resource Compiler Version") == output.npos
|| retCode !=0)
{
std::cout << output << "\n";
std::cout << output;
}
// if retCodeOut is requested then always return true
// and set the retCodeOut to retCode