cmGeneratorTarget: Move GetConfigCommonSourceFiles from cmTarget.

This commit is contained in:
Stephen Kelly
2015-08-05 17:37:50 +02:00
parent 69329fff70
commit c2b7336ff3
10 changed files with 88 additions and 72 deletions

View File

@@ -305,9 +305,12 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout,
// We may be modifying the source groups temporarily, so make a copy.
std::vector<cmSourceGroup> sourceGroups = this->Makefile->GetSourceGroups();
cmGeneratorTarget* gt =
this->GlobalGenerator->GetGeneratorTarget(&target);
// get the classes from the source lists then add them to the groups
std::vector<cmSourceFile*> classes;
if (!target.GetConfigCommonSourceFiles(classes))
if (!gt->GetConfigCommonSourceFiles(classes))
{
return;
}