summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-14 18:38:58 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-14 18:38:58 (GMT)
commitd57be904ae997e44ec9ac3b44722277f81936577 (patch)
treec83237f4a18176a55a7cc53816a65470b553d210 /Source/cmTarget.cxx
parentb3b44d138e50b2c5b4a4d327aae9290dba56862d (diff)
downloadCMake-d57be904ae997e44ec9ac3b44722277f81936577.zip
CMake-d57be904ae997e44ec9ac3b44722277f81936577.tar.gz
CMake-d57be904ae997e44ec9ac3b44722277f81936577.tar.bz2
cmTarget: Run old-style link dependencies only for VS 6
Invoke it at runtime only with the VS 6 generator. No other generators need it.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c480669..0d17dc2 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -517,8 +517,11 @@ void cmTarget::FinishConfigure()
// invalidation code in this source file is buggy.
this->ClearLinkMaps();
- // Do old-style link dependency analysis.
- this->AnalyzeLibDependenciesForVS6(*this->Makefile);
+ // Do old-style link dependency analysis only for CM_USE_OLD_VS6.
+ if(this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->IsForVS6())
+ {
+ this->AnalyzeLibDependenciesForVS6(*this->Makefile);
+ }
}
//----------------------------------------------------------------------------