CMake: Parse cmake errors during project setup

Do warn on errors during initial cmake run.

Change-Id: I520fdb8b83b9228ea71dcce050d1cab4c3e4f81a
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-01-22 09:43:09 +01:00
parent 859bf2c5ce
commit c1a914197c
2 changed files with 57 additions and 38 deletions

View File

@@ -44,7 +44,9 @@ QT_FORWARD_DECLARE_CLASS(QFileSystemWatcher);
namespace ProjectExplorer {
class FileNode;
class IOutputParser;
class Kit;
class Task;
} // namespace ProjectExplorer
namespace CMakeProjectManager {
@@ -88,8 +90,7 @@ private:
void cmakeFinished(int code, QProcess::ExitStatus status);
void processCMakeOutput();
void processOutputLine(const QString &line);
void processCMakeError();
const Utils::FileName m_sourceDir;
Utils::FileName m_buildDir;
@@ -107,7 +108,7 @@ private:
QList<ProjectExplorer::FileNode *> m_files;
// For error reporting:
ProjectExplorer::Task m_toReport;
ProjectExplorer::IOutputParser *m_parser = nullptr;
};
} // namespace Internal