diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-12-05 13:30:50 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-12-05 13:30:50 (GMT) |
commit | d386b74feab0a9ca509c216f138a92db8583a4e2 (patch) | |
tree | 5eb21a351b0b2dea6e6bc31e6ff22294f95ba4dd /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | d66aa2262ab04f695aa4f9869cd7ffa4450b3ac3 (diff) | |
download | CMake-d386b74feab0a9ca509c216f138a92db8583a4e2.zip CMake-d386b74feab0a9ca509c216f138a92db8583a4e2.tar.gz CMake-d386b74feab0a9ca509c216f138a92db8583a4e2.tar.bz2 |
use InAll target setting to determine what targets are in the default build
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index 9b6ac74..a005e2d 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -404,7 +404,7 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout) if ((l->second.GetType() != cmTarget::INSTALL_FILES) && (l->second.GetType() != cmTarget::INSTALL_PROGRAMS)) { - this->WriteProjectConfigurations(fout, si->c_str()); + this->WriteProjectConfigurations(fout, si->c_str(), l->second.IsInAll()); ++si; } } @@ -488,14 +488,18 @@ void cmGlobalVisualStudio7Generator::WriteProjectDepends(std::ostream& fout, // the libraries it uses are also done here void cmGlobalVisualStudio7Generator::WriteProjectConfigurations(std::ostream& fout, - const char* name) + const char* name, + bool in_all_build) { std::string guid = this->CreateGUID(name); for(std::vector<std::string>::iterator i = m_Configurations.begin(); i != m_Configurations.end(); ++i) { - fout << "\t\t{" << guid << "}." << *i << ".ActiveCfg = " << *i << "|Win32\n" - << "\t\t{" << guid << "}." << *i << ".Build.0 = " << *i << "|Win32\n"; + fout << "\t\t{" << guid << "}." << *i << ".ActiveCfg = " << *i << "|Win32\n"; + if (in_all_build) + { + fout << "\t\t{" << guid << "}." << *i << ".Build.0 = " << *i << "|Win32\n"; + } } } |