diff options
author | Brad King <brad.king@kitware.com> | 2020-09-03 19:09:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-04 13:44:30 (GMT) |
commit | 152724274534def1126f97a28f0ce9f0e126a2b2 (patch) | |
tree | a41ca387a2fdf1f948ec04ba9abf011030a0bb52 /Source/cmLocalVisualStudio10Generator.h | |
parent | 48bf7192e702f9fdc99585e3d9d616091cc62974 (diff) | |
download | CMake-152724274534def1126f97a28f0ce9f0e126a2b2.zip CMake-152724274534def1126f97a28f0ce9f0e126a2b2.tar.gz CMake-152724274534def1126f97a28f0ce9f0e126a2b2.tar.bz2 |
cmLocalVisualStudio10Generator: Simplify target ordering by dependencies
Replace our own depth-first traversal with use of the global generator's
computed target order that respects dependencies.
Diffstat (limited to 'Source/cmLocalVisualStudio10Generator.h')
-rw-r--r-- | Source/cmLocalVisualStudio10Generator.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio10Generator.h b/Source/cmLocalVisualStudio10Generator.h index 84216c8..a12247c 100644 --- a/Source/cmLocalVisualStudio10Generator.h +++ b/Source/cmLocalVisualStudio10Generator.h @@ -32,7 +32,8 @@ public: void ReadAndStoreExternalGUID(const std::string& name, const char* path) override; - std::set<cmSourceFile const*>& GetSourcesVisited(cmGeneratorTarget* target) + std::set<cmSourceFile const*>& GetSourcesVisited( + cmGeneratorTarget const* target) { return SourcesVisited[target]; }; @@ -42,8 +43,8 @@ protected: bool CustomCommandUseLocal() const override { return true; } private: - void GenerateTargetsDepthFirst(cmGeneratorTarget* target, - std::vector<cmGeneratorTarget*>& remaining); + void GenerateTarget(cmGeneratorTarget* target); - std::map<cmGeneratorTarget*, std::set<cmSourceFile const*>> SourcesVisited; + std::map<cmGeneratorTarget const*, std::set<cmSourceFile const*>> + SourcesVisited; }; |