forked from qt-creator/qt-creator
CMake: Remove some nowadays unneeded build configuration fetching
Change-Id: I371492f4ba5d3e67323d725588eff03038cef90f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -83,13 +83,6 @@ CMakeBuildStep::CMakeBuildStep(BuildStepList *bsl) :
|
|||||||
//: Default display name for the cmake make step.
|
//: Default display name for the cmake make step.
|
||||||
setDefaultDisplayName(tr("CMake Build"));
|
setDefaultDisplayName(tr("CMake Build"));
|
||||||
|
|
||||||
auto bc = qobject_cast<CMakeBuildConfiguration *>(bsl->parent());
|
|
||||||
if (!bc) {
|
|
||||||
auto t = qobject_cast<Target *>(bsl->parent()->parent());
|
|
||||||
QTC_ASSERT(t, return);
|
|
||||||
bc = qobject_cast<CMakeBuildConfiguration *>(t->activeBuildConfiguration());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set a good default build target:
|
// Set a good default build target:
|
||||||
if (m_buildTarget.isEmpty())
|
if (m_buildTarget.isEmpty())
|
||||||
setBuildTarget(defaultBuildTarget());
|
setBuildTarget(defaultBuildTarget());
|
||||||
|
Reference in New Issue
Block a user