summaryrefslogtreecommitdiff
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-11-22 13:37:42 -0500
committerBrad King <brad.king@kitware.com>2005-11-22 13:37:42 -0500
commitd952f68738c33c7cbc5a815d28383e07be806e30 (patch)
tree1bb5bf1416a89745dbb343f408344ae546c9b852 /Source/cmLocalVisualStudio7Generator.cxx
parentabebb974aa1983b4cbdd5a2d886908d735530694 (diff)
downloadcmake-d952f68738c33c7cbc5a815d28383e07be806e30.tar.gz
BUG: Tweak VS8 generator to keep VS8 happy. The .vcproj files need their own GUIDs in a ProjectGUID attribute. The top level .sln file needs a special comment at the top to allow it to be opened with double-click in explorer.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index fbd628a593..c04a223a13 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1352,8 +1352,14 @@ cmLocalVisualStudio7Generator::WriteProjectStart(std::ostream& fout,
{
keyword = "Win32Proj";
}
- fout << "\tName=\"" << projLabel << "\"\n"
- << "\tSccProjectName=\"\"\n"
+ cmGlobalVisualStudio7Generator* gg =
+ static_cast<cmGlobalVisualStudio7Generator *>(m_GlobalGenerator);
+ fout << "\tName=\"" << projLabel << "\"\n";
+ if(m_Version == 8)
+ {
+ fout << "\tProjectGUID=\"{" << gg->GetGUID(libName) << "}\"\n";
+ }
+ fout << "\tSccProjectName=\"\"\n"
<< "\tSccLocalPath=\"\"\n"
<< "\tKeyword=\"" << keyword << "\">\n"
<< "\t<Platforms>\n"