mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
cmGraphVizWriter: ignore __cmake_-prefixed targets
These targets are internal to CMake's C++ `import std` implementation and should not appear.
This commit is contained in:
@@ -284,7 +284,8 @@ void cmGraphVizWriter::Write()
|
|||||||
// Reserved targets have inconsistent names across platforms (e.g. 'all'
|
// Reserved targets have inconsistent names across platforms (e.g. 'all'
|
||||||
// vs. 'ALL_BUILD'), which can disrupt the traversal ordering.
|
// vs. 'ALL_BUILD'), which can disrupt the traversal ordering.
|
||||||
// We don't need or want them anyway.
|
// We don't need or want them anyway.
|
||||||
if (!cmGlobalGenerator::IsReservedTarget(gt->GetName())) {
|
if (!cmGlobalGenerator::IsReservedTarget(gt->GetName()) &&
|
||||||
|
!cmHasLiteralPrefix(gt->GetName(), "__cmake_")) {
|
||||||
sortedGeneratorTargets.insert(gt.get());
|
sortedGeneratorTargets.insert(gt.get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user