diff --git a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp index c494b68b77b..a24dbf8d6af 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp +++ b/src/plugins/cmakeprojectmanager/cmakebuildstep.cpp @@ -232,7 +232,7 @@ void CMakeBuildStep::run(QFutureInterface &fi) // Make sure CMake state was written to disk before trying to build: CMakeBuildConfiguration *bc = cmakeBuildConfiguration(); if (!bc) - bc = qobject_cast(target()->activeBuildConfiguration()); + bc = targetsActiveBuildConfiguration(); QTC_ASSERT(bc, return); bool mustDelay = false;