forked from qt-creator/qt-creator
CMakePM: Add "[cmake] " prefix to all output messages
With this one could easily filter the "[cmake] " messages from all the messages in the "Generate Messages" pane. Change-Id: I690650f0ccb0372c9361b95cfec41809737720d7 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -303,8 +303,9 @@ void FileApiReader::makeBackupConfiguration(bool store)
|
||||
replyPrev.removeRecursively();
|
||||
QTC_CHECK(!replyPrev.exists());
|
||||
if (!reply.renameFile(replyPrev))
|
||||
Core::MessageManager::writeFlashing(Tr::tr("Failed to rename \"%1\" to \"%2\".")
|
||||
.arg(reply.toString(), replyPrev.toString()));
|
||||
Core::MessageManager::writeFlashing(
|
||||
addCMakePrefix(Tr::tr("Failed to rename \"%1\" to \"%2\".")
|
||||
.arg(reply.toString(), replyPrev.toString())));
|
||||
}
|
||||
|
||||
FilePath cmakeCacheTxt = m_parameters.buildDirectory.pathAppended("CMakeCache.txt");
|
||||
@@ -315,8 +316,8 @@ void FileApiReader::makeBackupConfiguration(bool store)
|
||||
if (cmakeCacheTxt.exists())
|
||||
if (!FileUtils::copyIfDifferent(cmakeCacheTxt, cmakeCacheTxtPrev))
|
||||
Core::MessageManager::writeFlashing(
|
||||
Tr::tr("Failed to copy \"%1\" to \"%2\".")
|
||||
.arg(cmakeCacheTxt.toString(), cmakeCacheTxtPrev.toString()));
|
||||
addCMakePrefix(Tr::tr("Failed to copy \"%1\" to \"%2\".")
|
||||
.arg(cmakeCacheTxt.toString(), cmakeCacheTxtPrev.toString())));
|
||||
}
|
||||
|
||||
void FileApiReader::writeConfigurationIntoBuildDirectory(const QStringList &configurationArguments)
|
||||
|
||||
Reference in New Issue
Block a user