BUG: Fix utility dependencies for static libraries in VS generators. This addresses bug#4789.

This commit is contained in:
Brad King
2007-04-04 14:50:35 -04:00
parent 2803688998
commit 438a7e2fce
10 changed files with 220 additions and 30 deletions
+5 -7
View File
@@ -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";