summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-25 12:19:38 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-27 06:44:26 (GMT)
commit02533038dae9fb5b4ae1b6f7d55bb5af397400af (patch)
tree888f4f88753440c55b4081853d45529f7e5c5869 /Source/cmLocalVisualStudio6Generator.cxx
parentb6278e9ff714d8bdacb54f055eac71fe073b28d8 (diff)
downloadCMake-02533038dae9fb5b4ae1b6f7d55bb5af397400af.zip
CMake-02533038dae9fb5b4ae1b6f7d55bb5af397400af.tar.gz
CMake-02533038dae9fb5b4ae1b6f7d55bb5af397400af.tar.bz2
VS6: Port to FindGeneratorTarget
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio6Generator.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx
index fd0af61..cdacb9e 100644
--- a/Source/cmLocalVisualStudio6Generator.cxx
+++ b/Source/cmLocalVisualStudio6Generator.cxx
@@ -1112,15 +1112,14 @@ void cmLocalVisualStudio6Generator
// Compute the proper name to use to link this library.
std::string lib;
std::string libDebug;
- cmTarget* tgt = this->GlobalGenerator->FindTarget(j->first.c_str());
+ cmGeneratorTarget* tgt =
+ this->GlobalGenerator->FindGeneratorTarget(j->first.c_str());
if(tgt)
{
- cmGeneratorTarget* gt =
- this->GlobalGenerator->GetGeneratorTarget(tgt);
lib = cmSystemTools::GetFilenameWithoutExtension
- (gt->GetFullName().c_str());
+ (tgt->GetFullName().c_str());
libDebug = cmSystemTools::GetFilenameWithoutExtension
- (gt->GetFullName("Debug").c_str());
+ (tgt->GetFullName("Debug").c_str());
lib += ".lib";
libDebug += ".lib";
}