forked from qt-creator/qt-creator
CMake: Simplify code
Use defined helper method instead of duplicating code. Change-Id: I1eec61f99875ccd28e6e64bd5ad2bfd7e6e21eb3 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -232,7 +232,7 @@ void CMakeBuildStep::run(QFutureInterface<bool> &fi)
|
|||||||
// Make sure CMake state was written to disk before trying to build:
|
// Make sure CMake state was written to disk before trying to build:
|
||||||
CMakeBuildConfiguration *bc = cmakeBuildConfiguration();
|
CMakeBuildConfiguration *bc = cmakeBuildConfiguration();
|
||||||
if (!bc)
|
if (!bc)
|
||||||
bc = qobject_cast<CMakeBuildConfiguration *>(target()->activeBuildConfiguration());
|
bc = targetsActiveBuildConfiguration();
|
||||||
QTC_ASSERT(bc, return);
|
QTC_ASSERT(bc, return);
|
||||||
|
|
||||||
bool mustDelay = false;
|
bool mustDelay = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user