summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-14 20:35:34 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-14 20:35:34 (GMT)
commitbd0b829ffb6bf540fb9d3938687705deea0532e2 (patch)
treedd3e19affb1bb9487c61d8e77a47cc31f6a96818 /Source/cmGlobalVisualStudio8Generator.cxx
parenteeab2c55ed0615032ae9935fc2e805feee689031 (diff)
downloadCMake-bd0b829ffb6bf540fb9d3938687705deea0532e2.zip
CMake-bd0b829ffb6bf540fb9d3938687705deea0532e2.tar.gz
CMake-bd0b829ffb6bf540fb9d3938687705deea0532e2.tar.bz2
BUG: Fixed generation of VS8 solution file to not be re-written when loaded by VS and to work with msbuild.
Diffstat (limited to 'Source/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx35
1 files changed, 34 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index c13efd0..39562c4 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -25,6 +25,7 @@
cmGlobalVisualStudio8Generator::cmGlobalVisualStudio8Generator()
{
m_FindMakeProgramFile = "CMakeVS8FindMake.cmake";
+ m_ProjectConfigurationSectionName = "ProjectConfigurationPlatforms";
}
@@ -179,5 +180,37 @@ void cmGlobalVisualStudio8Generator::WriteSLNFile(
}
// Now write the solution file.
- this->cmGlobalVisualStudio7Generator::WriteSLNFile(fout, root, generators);
+ this->cmGlobalVisualStudio71Generator::WriteSLNFile(fout, root, generators);
+}
+
+//----------------------------------------------------------------------------
+void
+cmGlobalVisualStudio8Generator
+::WriteSolutionConfigurations(std::ostream& fout)
+{
+ fout << "\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n";
+ for(std::vector<std::string>::iterator i = m_Configurations.begin();
+ i != m_Configurations.end(); ++i)
+ {
+ fout << "\t\t" << *i << "|Win32 = " << *i << "|Win32\n";
+ }
+ fout << "\tEndGlobalSection\n";
+}
+
+//----------------------------------------------------------------------------
+void
+cmGlobalVisualStudio8Generator
+::WriteProjectConfigurations(std::ostream& fout,
+ const char* name, bool in_all_build)
+{
+ std::string guid = this->GetGUID(name);
+ for(std::vector<std::string>::iterator i = m_Configurations.begin();
+ i != m_Configurations.end(); ++i)
+ {
+ fout << "\t\t{" << guid << "}." << *i << "|Win32.ActiveCfg = " << *i << "|Win32\n";
+ if (in_all_build)
+ {
+ fout << "\t\t{" << guid << "}." << *i << "|Win32.Build.0 = " << *i << "|Win32\n";
+ }
+ }
}