diff options
author | Brad King <brad.king@kitware.com> | 2010-12-01 16:43:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-01 16:43:30 (GMT) |
commit | 08a31885c1eff9ed630d831ed38e231287c2c719 (patch) | |
tree | 013f3e592f661ee8b8624ce91580e1e04bfe7d1f /Source | |
parent | fd614e60b51e11ac8a99c19d541be9a8e5c141dc (diff) | |
download | CMake-08a31885c1eff9ed630d831ed38e231287c2c719.zip CMake-08a31885c1eff9ed630d831ed38e231287c2c719.tar.gz CMake-08a31885c1eff9ed630d831ed38e231287c2c719.tar.bz2 |
Skip VS <= 7.1 dependency analysis for VS >= 8
Commit 1a0c166 (Store direct dependencies in solutions for VS >= 8,
2010-08-20) disabled use of VS-specific global dependency analysis.
Avoid perfoming the analysis at all when it is not needed. This also
prevents creation of bogus and unused '_UTILITY' targets since they are
not needed for dependencies.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.cxx | 8 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio8Generator.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 76d01e7..2d080df 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -289,6 +289,14 @@ cmGlobalVisualStudio8Generator } //---------------------------------------------------------------------------- +bool cmGlobalVisualStudio8Generator::ComputeTargetDepends() +{ + // Skip over the cmGlobalVisualStudioGenerator implementation! + // We do not need the support that VS <= 7.1 needs. + return this->cmGlobalGenerator::ComputeTargetDepends(); +} + +//---------------------------------------------------------------------------- void cmGlobalVisualStudio8Generator::WriteProjectDepends( std::ostream& fout, const char*, const char*, cmTarget& t) { diff --git a/Source/cmGlobalVisualStudio8Generator.h b/Source/cmGlobalVisualStudio8Generator.h index 95b6a17..e0913ed 100644 --- a/Source/cmGlobalVisualStudio8Generator.h +++ b/Source/cmGlobalVisualStudio8Generator.h @@ -78,6 +78,7 @@ protected: virtual void WriteProjectConfigurations(std::ostream& fout, const char* name, bool partOfDefaultBuild); + virtual bool ComputeTargetDepends(); virtual void WriteProjectDepends(std::ostream& fout, const char* name, const char* path, cmTarget &t); |