CMake: Do not crash when deleting cmake tools

Do not crash when the cmake tool that was used to parse the project
gets removed.

Change-Id: Ieda3ae2025dbcfb1f90d9bd01c5f0ed960756c6a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tobias Hunger
2018-05-24 16:57:31 +02:00
parent b48742ad40
commit 88b065db3f
8 changed files with 45 additions and 28 deletions

View File

@@ -46,6 +46,7 @@ public:
BuildDirParameters(const BuildDirParameters &other);
bool isValid() const;
CMakeTool *cmakeTool() const;
CMakeBuildConfiguration *buildConfiguration = nullptr;
QString projectName;
@@ -54,7 +55,7 @@ public:
Utils::FileName buildDirectory;
Utils::FileName workDirectory; // either buildDirectory or a QTemporaryDirectory!
Utils::Environment environment;
CMakeTool *cmakeTool = nullptr;
Core::Id cmakeToolId;
QByteArray cxxToolChainId;
QByteArray cToolChainId;