summaryrefslogtreecommitdiff
path: root/Source/cmLocalVisualStudio10Generator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-03 15:09:19 -0400
committerBrad King <brad.king@kitware.com>2020-09-04 09:44:30 -0400
commit152724274534def1126f97a28f0ce9f0e126a2b2 (patch)
treea41ca387a2fdf1f948ec04ba9abf011030a0bb52 /Source/cmLocalVisualStudio10Generator.h
parent48bf7192e702f9fdc99585e3d9d616091cc62974 (diff)
downloadcmake-152724274534def1126f97a28f0ce9f0e126a2b2.tar.gz
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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio10Generator.h b/Source/cmLocalVisualStudio10Generator.h
index 84216c8fb8..a12247cac3 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;
};