summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio6Generator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio6Generator.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx
index 10260d7..fb475c3 100644
--- a/Source/cmGlobalVisualStudio6Generator.cxx
+++ b/Source/cmGlobalVisualStudio6Generator.cxx
@@ -177,7 +177,10 @@ void cmGlobalVisualStudio6Generator::Generate()
"echo", "Build all projects");
}
}
-
+
+ // Fix utility dependencies to avoid linking to libraries.
+ this->FixUtilityDepends();
+
// first do the superclass method
this->cmGlobalGenerator::Generate();
@@ -438,12 +441,7 @@ void cmGlobalVisualStudio6Generator::WriteProject(std::ostream& fout,
{
if(*i != dspname)
{
- std::string depName = *i;
- if(strncmp(depName.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0)
- {
- depName.erase(depName.begin(), depName.begin() + 27);
- }
-
+ std::string depName = this->GetUtilityForTarget(target, i->c_str());
fout << "Begin Project Dependency\n";
fout << "Project_Dep_Name " << depName << "\n";
fout << "End Project Dependency\n";