forked from qt-creator/qt-creator
CMake: Inject special build targets into list of extracted targets
Inject special targets like all, test and install into the list of targets that get reported by CMake. This makes those available in the locator again. Task-number: QTCREATORBUG-24064 Change-Id: I08f1232d243afbe0800c1dc308a00917c98ccf8a Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -528,11 +528,8 @@ void CMakeBuildStepConfigWidget::buildTargetsChanged()
|
||||
|
||||
addItem(ADD_RUNCONFIGURATION_TEXT, tr(ADD_RUNCONFIGURATION_TEXT), true);
|
||||
|
||||
foreach (const QString &buildTarget, CMakeBuildStep::specialTargets())
|
||||
addItem(buildTarget, buildTarget, true);
|
||||
|
||||
foreach (const QString &buildTarget, targetList)
|
||||
addItem(buildTarget, buildTarget);
|
||||
addItem(buildTarget, buildTarget, CMakeBuildStep::specialTargets().contains(buildTarget));
|
||||
|
||||
updateBuildTargets();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user