From 27a0677d3e1caffd16232086e86ed1657731723d Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 28 May 2007 11:00:26 -0400 Subject: COMP: Fix build for windows-only generators after change to GetSourceFiles signature. --- Source/cmGlobalVisualStudio8Generator.cxx | 2 +- Source/cmLocalVisualStudio6Generator.cxx | 8 ++++---- Source/cmLocalVisualStudio7Generator.cxx | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx index 2c2325b..9eafd92 100644 --- a/Source/cmGlobalVisualStudio8Generator.cxx +++ b/Source/cmGlobalVisualStudio8Generator.cxx @@ -153,7 +153,7 @@ void cmGlobalVisualStudio8Generator::Generate() if(cmSourceFile* file = mf->GetSource(CMAKE_CHECK_BUILD_SYSTEM_TARGET ".vcproj.cmake.rule")) { - tgt->GetSourceFiles().push_back(file); + tgt->AddSourceFile(file); } else { diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 25e3253..b769882 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -244,7 +244,7 @@ void cmLocalVisualStudio6Generator::AddDSPBuildRule(cmTarget& tgt) no_working_directory, true); if(cmSourceFile* file = this->Makefile->GetSource(makefileIn.c_str())) { - tgt.GetSourceFiles().push_back(file); + tgt.AddSourceFile(file); } else { @@ -309,11 +309,11 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout, std::vector sourceGroups = this->Makefile->GetSourceGroups(); // get the classes from the source lists then add them to the groups - std::vector & classes = target.GetSourceFiles(); + std::vector const & classes = target.GetSourceFiles(); // now all of the source files have been properly assigned to the target // now stick them into source groups using the reg expressions - for(std::vector::iterator i = classes.begin(); + for(std::vector::const_iterator i = classes.begin(); i != classes.end(); i++) { // Add the file to the list of sources. @@ -564,7 +564,7 @@ cmLocalVisualStudio6Generator // Add a source file representing this output to the project. cmSourceFile* outsf = this->Makefile->GetSourceFileWithOutput(output); - target.GetSourceFiles().push_back(outsf); + target.AddSourceFile(outsf); // Free the fake output name. delete [] output; diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 54866e5..9a0ee59 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -88,7 +88,7 @@ void cmLocalVisualStudio7Generator::FixGlobalTargets() if(cmSourceFile* file = this->Makefile->GetSourceFileWithOutput(force.c_str())) { - tgt.GetSourceFiles().push_back(file); + tgt.AddSourceFile(file); } } } @@ -219,7 +219,7 @@ void cmLocalVisualStudio7Generator::AddVCProjBuildRule(cmTarget& tgt) no_working_directory, true); if(cmSourceFile* file = this->Makefile->GetSource(makefileIn.c_str())) { - tgt.GetSourceFiles().push_back(file); + tgt.AddSourceFile(file); } else { @@ -963,7 +963,7 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout, std::vector sourceGroups = this->Makefile->GetSourceGroups(); // get the classes from the source lists then add them to the groups - std::vector & classes = target.GetSourceFiles(); + std::vectorconst & classes = target.GetSourceFiles(); for(std::vector::const_iterator i = classes.begin(); i != classes.end(); i++) { -- cgit v0.12