From a189d019dd2cc3a56fc57ae1162b752ff0811551 Mon Sep 17 00:00:00 2001 From: Sebastian Holtermann Date: Fri, 30 Sep 2016 10:58:48 +0200 Subject: [PATCH] QtAutogen: Use cmSystemTools::Error instead of std::cerr We can use std::cerr only in the build-time tool, not during CMake generation. --- Source/cmQtAutoGeneratorInitializer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx index f5936bf21..5246a676b 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();