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:
Ben Boeckel 2024-04-08 18:00:28 -04:00
parent ffe74289b3
commit 442086c1dc

View File

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