cmTarget: Make GetSourceFiles populate an out-vector parameter.

In a future patch, this will also be populated with extra
sources from the linked dependencies.
This commit is contained in:
Stephen Kelly
2013-07-14 18:22:57 +02:00
parent 38de54cf6f
commit 531e40b95e
18 changed files with 54 additions and 33 deletions

View File

@@ -42,8 +42,8 @@ void cmNinjaUtilityTargetGenerator::Generate()
}
}
const std::vector<cmSourceFile*>& sources =
this->GetTarget()->GetSourceFiles();
std::vector<cmSourceFile*> sources;
this->GetTarget()->GetSourceFiles(sources);
for(std::vector<cmSourceFile*>::const_iterator source = sources.begin();
source != sources.end(); ++source)
{