diff options
Diffstat (limited to 'Source/cmDSWWriter.cxx')
-rw-r--r-- | Source/cmDSWWriter.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx index 97eb9c3..8d00d9f 100644 --- a/Source/cmDSWWriter.cxx +++ b/Source/cmDSWWriter.cxx @@ -126,23 +126,24 @@ void cmDSWMakefile::WriteProject(std::ostream& fout, fout << "{{{\n"; // insert Begin Project Dependency Project_Dep_Name project stuff here - std::vector<std::string>::iterator i, end; - i = project->GetMakefile()->GetLinkLibraries().begin(); - end = project->GetMakefile()->GetLinkLibraries().end(); - for(;i!= end; ++i) + cmMakefile::LinkLibraries::const_iterator j, jend; + j = project->GetMakefile()->GetLinkLibraries().begin(); + jend = project->GetMakefile()->GetLinkLibraries().end(); + for(;j!= jend; ++j) { - if(*i != dspname) + if(j->first != dspname) { if (!l.IsALibrary() || project->GetLibraryBuildType() == cmDSPMakefile::DLL) { fout << "Begin Project Dependency\n"; - fout << "Project_Dep_Name " << *i << "\n"; + fout << "Project_Dep_Name " << j->first << "\n"; fout << "End Project Dependency\n"; } } } - + + std::vector<std::string>::iterator i, end; // write utility dependencies. i = project->GetMakefile()->GetUtilities().begin(); end = project->GetMakefile()->GetUtilities().end(); |