ENH: clean up annoying output from rc tool in VS9
This commit is contained in:
parent
6502177306
commit
b487030bd9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue