summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-09-30 08:58:48 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-30 14:12:59 (GMT)
commita189d019dd2cc3a56fc57ae1162b752ff0811551 (patch)
treebcd8a246821d3e0b1cc2a0e6f6a8cd0f72bc742f /Source
parentbcafc399c581974c21631275adc2bba3e0e7d535 (diff)
downloadCMake-a189d019dd2cc3a56fc57ae1162b752ff0811551.zip
CMake-a189d019dd2cc3a56fc57ae1162b752ff0811551.tar.gz
CMake-a189d019dd2cc3a56fc57ae1162b752ff0811551.tar.bz2
QtAutogen: Use cmSystemTools::Error instead of std::cerr
We can use std::cerr only in the build-time tool, not during CMake generation.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmQtAutoGeneratorInitializer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index f5936bf..5246a67 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -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();