diff options
author | Brad King <brad.king@kitware.com> | 2007-04-04 18:50:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-04-04 18:50:35 (GMT) |
commit | 438a7e2fcef6c82dd93e0106208dbaee7e9ccfc4 (patch) | |
tree | 457a6595797e62866b70c4d7e6b4f428b7da033b /Source/cmGlobalVisualStudio6Generator.cxx | |
parent | 2803688998cebbd40df1a0678106e62271217add (diff) | |
download | CMake-438a7e2fcef6c82dd93e0106208dbaee7e9ccfc4.zip CMake-438a7e2fcef6c82dd93e0106208dbaee7e9ccfc4.tar.gz CMake-438a7e2fcef6c82dd93e0106208dbaee7e9ccfc4.tar.bz2 |
BUG: Fix utility dependencies for static libraries in VS generators. This addresses bug#4789.
Diffstat (limited to 'Source/cmGlobalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio6Generator.cxx | 12 |
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"; |