Merge topic 'autogen-fix-cmake-error'

a189d019 QtAutogen: Use cmSystemTools::Error instead of std::cerr
This commit is contained in:
Brad King 2016-10-01 08:20:36 -04:00 committed by CMake Topic Stage
commit f564e4ab01
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"
<< rccStdOut << "\n"
<< rccStdErr << std::endl;
std::cerr << err.str();
cmSystemTools::Error(err.str().c_str());
return false;
}
@ -507,7 +507,7 @@ static bool ListQt5RccInputs(cmSourceFile* sf, cmGeneratorTarget const* target,
std::ostringstream err;
err << "AUTOGEN: error: Rcc lists unparsable output " << eline
<< std::endl;
std::cerr << err.str();
cmSystemTools::Error(err.str().c_str());
return false;
}
pos += searchString.length();