forked from qt-creator/qt-creator
CMakePM: Fix assert with non CMake projects
Amends 7028e27a81
Change-Id: I5d1e29abf19135aea8a401f2b971767f8a308c28
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -167,7 +167,8 @@ CMakeManager::CMakeManager()
|
|||||||
connect(ProjectManager::instance(), &ProjectManager::startupProjectChanged, this, [this] {
|
connect(ProjectManager::instance(), &ProjectManager::startupProjectChanged, this, [this] {
|
||||||
updateCmakeActions(ProjectTree::currentNode());
|
updateCmakeActions(ProjectTree::currentNode());
|
||||||
|
|
||||||
auto cmakeBuildSystem = static_cast<CMakeBuildSystem*>(ProjectManager::startupBuildSystem());
|
auto cmakeBuildSystem = qobject_cast<CMakeBuildSystem *>(
|
||||||
|
ProjectManager::startupBuildSystem());
|
||||||
if (cmakeBuildSystem) {
|
if (cmakeBuildSystem) {
|
||||||
const BuildDirParameters parameters(cmakeBuildSystem);
|
const BuildDirParameters parameters(cmakeBuildSystem);
|
||||||
const auto tool = parameters.cmakeTool();
|
const auto tool = parameters.cmakeTool();
|
||||||
|
|||||||
Reference in New Issue
Block a user