QtAutogen: Use cmSystemTools::Error instead of std::cerr

We can use std::cerr only in the build-time tool, not during CMake
generation.
This commit is contained in:
Sebastian Holtermann 2016-09-30 10:58:48 +02:00 committed by Brad King
parent bcafc399c5
commit a189d019dd
1 changed files with 2 additions and 2 deletions

View File

@ -478,7 +478,7 @@ static bool ListQt5RccInputs(cmSourceFile* sf, cmGeneratorTarget const* target,
<< " failed:\n" << " failed:\n"
<< rccStdOut << "\n" << rccStdOut << "\n"
<< rccStdErr << std::endl; << rccStdErr << std::endl;
std::cerr << err.str(); cmSystemTools::Error(err.str().c_str());
return false; return false;
} }
@ -507,7 +507,7 @@ static bool ListQt5RccInputs(cmSourceFile* sf, cmGeneratorTarget const* target,
std::ostringstream err; std::ostringstream err;
err << "AUTOGEN: error: Rcc lists unparsable output " << eline err << "AUTOGEN: error: Rcc lists unparsable output " << eline
<< std::endl; << std::endl;
std::cerr << err.str(); cmSystemTools::Error(err.str().c_str());
return false; return false;
} }
pos += searchString.length(); pos += searchString.length();