Merge topic 'vs-sln-header'
c677838
VS: Fix VS 10/11 .sln headers (#14038)
This commit is contained in:
commit
c20f4dd620
|
@ -102,7 +102,14 @@ void cmGlobalVisualStudio10Generator::AddPlatformDefinitions(cmMakefile* mf)
|
|||
void cmGlobalVisualStudio10Generator::WriteSLNHeader(std::ostream& fout)
|
||||
{
|
||||
fout << "Microsoft Visual Studio Solution File, Format Version 11.00\n";
|
||||
if (this->ExpressEdition)
|
||||
{
|
||||
fout << "# Visual C++ Express 2010\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
fout << "# Visual Studio 2010\n";
|
||||
}
|
||||
}
|
||||
|
||||
///! Create a local generator appropriate to this Global Generator
|
||||
|
|
|
@ -81,7 +81,14 @@ cmGlobalVisualStudio11Generator::cmGlobalVisualStudio11Generator(
|
|||
void cmGlobalVisualStudio11Generator::WriteSLNHeader(std::ostream& fout)
|
||||
{
|
||||
fout << "Microsoft Visual Studio Solution File, Format Version 12.00\n";
|
||||
fout << "# Visual Studio 11\n";
|
||||
if (this->ExpressEdition)
|
||||
{
|
||||
fout << "# Visual Studio Express 2012 for Windows Desktop\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
fout << "# Visual Studio 2012\n";
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue