mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user