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:
Cristian Adam
2020-12-22 16:01:43 +01:00
parent 267309b254
commit db42525e19

View File

@@ -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()