|
@@ -299,8 +299,11 @@ void cmGlobalVisualStudio7Generator::Generate()
|
|
|
// first do the superclass method
|
|
|
this->cmGlobalVisualStudioGenerator::Generate();
|
|
|
|
|
|
- // Now write out the VS Solution file.
|
|
|
- this->OutputSLNFile();
|
|
|
+ // Now write out the VS Solution files.
|
|
|
+ for (auto& it : this->ProjectMap) {
|
|
|
+ this->OutputSLNFile(it.second[0], it.second);
|
|
|
+ }
|
|
|
+
|
|
|
// If any solution or project files changed during the generation,
|
|
|
// tell Visual Studio to reload them...
|
|
|
if (!cmSystemTools::GetErrorOccurredFlag() &&
|
|
@@ -340,14 +343,6 @@ void cmGlobalVisualStudio7Generator::OutputSLNFile(
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// output the SLN file
|
|
|
-void cmGlobalVisualStudio7Generator::OutputSLNFile()
|
|
|
-{
|
|
|
- for (auto& it : this->ProjectMap) {
|
|
|
- this->OutputSLNFile(it.second[0], it.second);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
|
|
|
std::ostream& fout, std::vector<std::string> const& configs,
|
|
|
OrderedTargetDependSet const& projectTargets) const
|