summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-03 19:38:25 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-08 18:52:22 (GMT)
commit8bb5c96bf8bc363afa5da09ce1979614565d31ba (patch)
tree6eb38a64f7c482e9936b3e4af548ee2d9a523af8 /Source/cmLocalVisualStudio7Generator.h
parentaea465793e9744fcda0c26dad14c0620b7448f14 (diff)
downloadCMake-8bb5c96bf8bc363afa5da09ce1979614565d31ba.zip
CMake-8bb5c96bf8bc363afa5da09ce1979614565d31ba.tar.gz
CMake-8bb5c96bf8bc363afa5da09ce1979614565d31ba.tar.bz2
cmLocalVisualStudio7Generator: Adopt SourcesVisited lookup table
Move it up the hierarchy from `cmLocalVisualStudio10Generator`. Propagate contents from a target's dependencies as part of the main target iteration logic instead of as part of the generator-specific target generation.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.h')
-rw-r--r--Source/cmLocalVisualStudio7Generator.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.h b/Source/cmLocalVisualStudio7Generator.h
index 9ccd1a1..6e06c09 100644
--- a/Source/cmLocalVisualStudio7Generator.h
+++ b/Source/cmLocalVisualStudio7Generator.h
@@ -83,6 +83,12 @@ public:
virtual void ReadAndStoreExternalGUID(const std::string& name,
const char* path);
+ std::set<cmSourceFile const*>& GetSourcesVisited(
+ cmGeneratorTarget const* target)
+ {
+ return this->SourcesVisited[target];
+ };
+
protected:
virtual void GenerateTarget(cmGeneratorTarget* target);
@@ -148,4 +154,7 @@ private:
bool FortranProject;
bool WindowsCEProject;
std::unique_ptr<cmLocalVisualStudio7GeneratorInternals> Internal;
+
+ std::map<cmGeneratorTarget const*, std::set<cmSourceFile const*>>
+ SourcesVisited;
};