diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-04-08 22:03:00 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2024-04-12 15:46:40 (GMT) |
commit | 62a71047bb0fb0f99c86d7312da83ec5bd0a322c (patch) | |
tree | 1437bb999a7e6cf6a562868213ee183046397068 /Source/cmGraphVizWriter.cxx | |
parent | 442086c1dc49e8537beb360f82ea0864c5b124e0 (diff) | |
download | CMake-62a71047bb0fb0f99c86d7312da83ec5bd0a322c.zip CMake-62a71047bb0fb0f99c86d7312da83ec5bd0a322c.tar.gz CMake-62a71047bb0fb0f99c86d7312da83ec5bd0a322c.tar.bz2 |
cmGraphVizWriter: ignore `__cmake_`-prefixed targets
These targets are internal to CMake's C++ `import std` implementation
and should not appear.
Diffstat (limited to 'Source/cmGraphVizWriter.cxx')
-rw-r--r-- | Source/cmGraphVizWriter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGraphVizWriter.cxx b/Source/cmGraphVizWriter.cxx index a8a7abb..6c3afef 100644 --- a/Source/cmGraphVizWriter.cxx +++ b/Source/cmGraphVizWriter.cxx @@ -284,7 +284,8 @@ void cmGraphVizWriter::Write() // Reserved targets have inconsistent names across platforms (e.g. 'all' // vs. 'ALL_BUILD'), which can disrupt the traversal ordering. // 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()); } } |