diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-06-22 13:06:46 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-06-22 13:06:46 (GMT) |
commit | 369308ca767367e5dd68fd783c830fd8a57ec751 (patch) | |
tree | df00ee1c003cb33dd70fb622dfd85fd6d2a058cb /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | 5fab6eebd651351ec3e712923cfa2d4b36788d74 (diff) | |
download | CMake-369308ca767367e5dd68fd783c830fd8a57ec751.zip CMake-369308ca767367e5dd68fd783c830fd8a57ec751.tar.gz CMake-369308ca767367e5dd68fd783c830fd8a57ec751.tar.bz2 |
ENH: make LOCATION an computed property of the target and get rid of a bunch of const junk
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx index a604485..34ae9a2 100644 --- a/Source/cmGlobalVisualStudio7Generator.cxx +++ b/Source/cmGlobalVisualStudio7Generator.cxx @@ -312,9 +312,8 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout, unsigned int j; for(j = 0; j < generators.size(); ++j) { - const cmTargets &atgts = - generators[j]->GetMakefile()->GetTargets(); - for(cmTargets::const_iterator al = atgts.begin(); + cmTargets &atgts = generators[j]->GetMakefile()->GetTargets(); + for(cmTargets::iterator al = atgts.begin(); al != atgts.end(); ++al) { if (al->second.IsInAll()) @@ -498,8 +497,7 @@ void cmGlobalVisualStudio7Generator::WriteSLNFile(std::ostream& fout, // the libraries it uses are also done here void cmGlobalVisualStudio7Generator::WriteProject(std::ostream& fout, const char* dspname, - const char* dir, - const cmTarget&) + const char* dir, cmTarget&) { std::string d = cmSystemTools::ConvertToOutputPath(dir); fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \"" @@ -517,8 +515,7 @@ void cmGlobalVisualStudio7Generator ::WriteProjectDepends(std::ostream& fout, const char* dspname, - const char*, - const cmTarget& target) + const char*, cmTarget& target) { int depcount = 0; // insert Begin Project Dependency Project_Dep_Name project stuff here |