diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp index 6731eb35c10..5c18e442e99 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp @@ -225,9 +225,6 @@ bool CMakeBuildStep::init() void CMakeBuildStep::doRun() { // Make sure CMake state was written to disk before trying to build: - CMakeBuildConfiguration *bc = cmakeBuildConfiguration(); - QTC_ASSERT(bc, return); - m_waiting = false; auto bs = static_cast(buildSystem()); if (bs->persistCMakeState()) {