use InAll target setting to determine what targets are in the default build

This commit is contained in:
Ken Martin 2002-12-05 08:30:50 -05:00
parent d66aa2262a
commit d386b74fea
1 changed files with 8 additions and 4 deletions

View File

@ -404,7 +404,7 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout)
if ((l->second.GetType() != cmTarget::INSTALL_FILES) if ((l->second.GetType() != cmTarget::INSTALL_FILES)
&& (l->second.GetType() != cmTarget::INSTALL_PROGRAMS)) && (l->second.GetType() != cmTarget::INSTALL_PROGRAMS))
{ {
this->WriteProjectConfigurations(fout, si->c_str()); this->WriteProjectConfigurations(fout, si->c_str(), l->second.IsInAll());
++si; ++si;
} }
} }
@ -488,14 +488,18 @@ void cmGlobalVisualStudio7Generator::WriteProjectDepends(std::ostream& fout,
// the libraries it uses are also done here // the libraries it uses are also done here
void void
cmGlobalVisualStudio7Generator::WriteProjectConfigurations(std::ostream& fout, cmGlobalVisualStudio7Generator::WriteProjectConfigurations(std::ostream& fout,
const char* name) const char* name,
bool in_all_build)
{ {
std::string guid = this->CreateGUID(name); std::string guid = this->CreateGUID(name);
for(std::vector<std::string>::iterator i = m_Configurations.begin(); for(std::vector<std::string>::iterator i = m_Configurations.begin();
i != m_Configurations.end(); ++i) i != m_Configurations.end(); ++i)
{ {
fout << "\t\t{" << guid << "}." << *i << ".ActiveCfg = " << *i << "|Win32\n" fout << "\t\t{" << guid << "}." << *i << ".ActiveCfg = " << *i << "|Win32\n";
<< "\t\t{" << guid << "}." << *i << ".Build.0 = " << *i << "|Win32\n"; if (in_all_build)
{
fout << "\t\t{" << guid << "}." << *i << ".Build.0 = " << *i << "|Win32\n";
}
} }
} }