mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06: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:
@@ -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