From b5ab98dfd50f52b79de6c54bac173edc3a6f011c Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 24 Apr 2017 13:26:58 +0200 Subject: [PATCH] CMake: Simplify code Use defined helper method instead of duplicating code. Change-Id: I1eec61f99875ccd28e6e64bd5ad2bfd7e6e21eb3 Reviewed-by: hjk --- src/plugins/cmakeprojectmanager/cmakebuildstep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;