forked from qt-creator/qt-creator
CMakeProjectManager: Filter out the utility targets
Do now show _autogen or _qml _deps utility targets in the target dialog via "cmo <target>". Fixes: QTCREATORBUG-24718 Change-Id: I26651669c3ab54f5bd4ba3f5ddb4409524be00ba Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -71,6 +71,8 @@ void CMakeTargetLocatorFilter::prepareSearch(const QString &entry)
|
||||
|
||||
const QList<CMakeBuildTarget> buildTargets = bs->buildTargets();
|
||||
for (const CMakeBuildTarget &target : buildTargets) {
|
||||
if (target.targetType == UtilityType && !CMakeBuildStep::specialTargets().contains(target.title))
|
||||
continue;
|
||||
const int index = target.title.indexOf(entry);
|
||||
if (index >= 0) {
|
||||
const FilePath path = target.backtrace.isEmpty() ? cmakeProject->projectFilePath()
|
||||
|
Reference in New Issue
Block a user