Commit a189d019 authored by Sebastian Holtermann's avatar Sebastian Holtermann Committed by Brad King

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

We can use std::cerr only in the build-time tool, not during CMake
generation.
parent bcafc399
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment