summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-09-16 14:48:10 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-09-16 14:48:10 (GMT)
commitcf7893b9340a7db1af5bb451709ff4555bea3475 (patch)
treea3d548174cef995df41a4ef0f1bc689016d2ca4b /Source
parenta2c19a4d46b82f747d97ad0005887ce44c89af72 (diff)
downloadCMake-cf7893b9340a7db1af5bb451709ff4555bea3475.zip
CMake-cf7893b9340a7db1af5bb451709ff4555bea3475.tar.gz
CMake-cf7893b9340a7db1af5bb451709ff4555bea3475.tar.bz2
BUG: fix VSExternal for visual studio 6
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalVisualStudio6Generator.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio6Generator.cxx b/Source/cmGlobalVisualStudio6Generator.cxx
index afceb6b..8a017e1 100644
--- a/Source/cmGlobalVisualStudio6Generator.cxx
+++ b/Source/cmGlobalVisualStudio6Generator.cxx
@@ -477,9 +477,9 @@ void cmGlobalVisualStudio6Generator::WriteProject(std::ostream& fout,
const char* cacheValue
= m_CMakeInstance->GetCacheDefinition(libPath.c_str());
if(cacheValue && *cacheValue)
- {
+ {
fout << "Begin Project Dependency\n";
- fout << "Project_Dep_Name " << j->first << "\n";
+ fout << "Project_Dep_Name " << j->first.c_str() << "\n";
fout << "End Project Dependency\n";
}
}
@@ -494,8 +494,14 @@ 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);
+ }
+
fout << "Begin Project Dependency\n";
- fout << "Project_Dep_Name " << *i << "\n";
+ fout << "Project_Dep_Name " << depName << "\n";
fout << "End Project Dependency\n";
}
}