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
+2 -1
View File
@@ -237,7 +237,8 @@ void cmExtraSublimeTextGenerator::
{
cmGeneratorTarget *gtgt = this->GlobalGenerator
->GetGeneratorTarget(target);
std::vector<cmSourceFile*> const& sourceFiles = target->GetSourceFiles();
std::vector<cmSourceFile*> sourceFiles;
target->GetSourceFiles(sourceFiles);
std::vector<cmSourceFile*>::const_iterator sourceFilesEnd =
sourceFiles.end();
for (std::vector<cmSourceFile*>::const_iterator iter =