mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
fileapi: ignore __cmake_-prefixed targets
These targets are internal to CMake's C++ `import std` implementation and should not appear.
This commit is contained in:
1 parent
ffe74289b3
commit
442086c1dc
1 file changed
+5
@@ -685,6 +685,11 @@ Json::Value CodemodelConfig::DumpTargets()
|
||||
continue;
|
||||
}
|
||||
|
||||
// Ignore targets starting with `__cmake_` as they are internal.
|
||||
if (cmHasLiteralPrefix(gt->GetName(), "__cmake_")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
targets.append(this->DumpTarget(gt, targets.size()));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user