diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp index 7384153647f..8c046ff3751 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp @@ -119,9 +119,7 @@ void CMakeManager::runCMake(ProjectExplorer::Project *project) return; CMakeBuildConfiguration *bc - = qobject_cast(cmakeProject->activeTarget()->activeBuildConfiguration()); - if (!bc) - return; + = static_cast(cmakeProject->activeTarget()->activeBuildConfiguration()); CMakeOpenProjectWizard copw(this, cmakeProject->projectDirectory(),