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:
Cristian Adam
2023-10-04 17:31:20 +02:00
parent edf4280bd9
commit 16dfd2d374
7 changed files with 50 additions and 24 deletions

View File

@@ -3,6 +3,7 @@
#include "fileapiparser.h"
#include "cmakeprocess.h"
#include "cmakeprojectmanagertr.h"
#include <coreplugin/messagemanager.h>
@@ -42,9 +43,10 @@ FilePath FileApiParser::cmakeReplyDirectory(const FilePath &buildDirectory)
static void reportFileApiSetupFailure()
{
Core::MessageManager::writeFlashing(Tr::tr("Failed to set up CMake file API support. %1 cannot "
"extract project information.")
.arg(QGuiApplication::applicationDisplayName()));
Core::MessageManager::writeFlashing(
addCMakePrefix(Tr::tr("Failed to set up CMake file API support. %1 cannot "
"extract project information.")
.arg(QGuiApplication::applicationDisplayName())));
}
static std::pair<int, int> cmakeVersion(const QJsonObject &obj)