summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-08-24 22:39:36 (GMT)
committerBrad King <brad.king@kitware.com>2010-08-24 22:39:36 (GMT)
commit325bdb2a92bbbbe18ae2cbffc000bd6e0dd0367a (patch)
tree3c38d59caa8603dca3752306eb44dd7b42c2857a /Source/cmGlobalVisualStudioGenerator.h
parent6bea84353c76d392a9da11557ab888fa18ea1955 (diff)
downloadCMake-325bdb2a92bbbbe18ae2cbffc000bd6e0dd0367a.zip
CMake-325bdb2a92bbbbe18ae2cbffc000bd6e0dd0367a.tar.gz
CMake-325bdb2a92bbbbe18ae2cbffc000bd6e0dd0367a.tar.bz2
Factor out duplicate VS target dependency code
Compute VS target dependencies in cmGlobalVisualStudioGenerator when the main global dependency analysis is done. Use these results in each of the VS generators instead of duplicating the analysis.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index b0be087..3d499e3 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/Source/cmGlobalVisualStudioGenerator.h
@@ -93,6 +93,11 @@ protected:
virtual void GetTargetSets(TargetDependSet& projectTargets,
TargetDependSet& originalTargets,
cmLocalGenerator* root, GeneratorVector const&);
+ virtual bool ComputeTargetDepends();
+ class VSDependSet: public std::set<cmStdString> {};
+ class VSDependMap: public std::map<cmTarget*, VSDependSet> {};
+ VSDependMap VSTargetDepends;
+ void ComputeVSTargetDepends(cmTarget&);
bool CheckTargetLinks(cmTarget& target, const char* name);
private: