diff options
author | Nick Schultz <nickker22@gmail.com> | 2018-10-24 22:49:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-26 15:17:49 (GMT) |
commit | 50c4dec07267c8678302b0c4cf0c89a5a02b1d6b (patch) | |
tree | 811948e5118a793f1c42f25dc4b2c8f4aa71cd19 /Source/cmGraphVizWriter.h | |
parent | da1580b48e84cf1fc3bfb518d7e78b61393a0ef2 (diff) | |
download | CMake-50c4dec07267c8678302b0c4cf0c89a5a02b1d6b.zip CMake-50c4dec07267c8678302b0c4cf0c89a5a02b1d6b.tar.gz CMake-50c4dec07267c8678302b0c4cf0c89a5a02b1d6b.tar.bz2 |
graphviz: dereference ALIAS targets
Previous behavior treats ALIAS targets as external targets.
This fix de-aliases these targets to their pointed target.
Fixes: #15636
Diffstat (limited to 'Source/cmGraphVizWriter.h')
-rw-r--r-- | Source/cmGraphVizWriter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGraphVizWriter.h b/Source/cmGraphVizWriter.h index ac20da9..ed242f0 100644 --- a/Source/cmGraphVizWriter.h +++ b/Source/cmGraphVizWriter.h @@ -16,13 +16,14 @@ class cmGeneratedFileStream; class cmGeneratorTarget; class cmLocalGenerator; +class cmGlobalGenerator; /** This class implements writing files for graphviz (dot) for graphs * representing the dependencies between the targets in the project. */ class cmGraphVizWriter { public: - cmGraphVizWriter(const std::vector<cmLocalGenerator*>& localGenerators); + cmGraphVizWriter(const cmGlobalGenerator* globalGenerator); void ReadSettings(const char* settingsFileName, const char* fallbackSettingsFileName); @@ -69,6 +70,7 @@ protected: std::vector<cmsys::RegularExpression> TargetsToIgnoreRegex; + const cmGlobalGenerator* GlobalGenerator; const std::vector<cmLocalGenerator*>& LocalGenerators; std::map<std::string, const cmGeneratorTarget*> TargetPtrs; |