|
|
@@ -2893,13 +2893,14 @@ void cmGlobalGenerator::WriteSummary()
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
- this->WriteSummary(ti->second);
|
|
|
- fout << ti->second->GetSupportDirectory() << "\n";
|
|
|
+ cmGeneratorTarget* gt = this->GetGeneratorTarget(ti->second);
|
|
|
+ this->WriteSummary(gt);
|
|
|
+ fout << gt->GetSupportDirectory() << "\n";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
-void cmGlobalGenerator::WriteSummary(cmTarget* target)
|
|
|
+void cmGlobalGenerator::WriteSummary(cmGeneratorTarget* target)
|
|
|
{
|
|
|
// Place the labels file in a per-target support directory.
|
|
|
std::string dir = target->GetSupportDirectory();
|
|
|
@@ -2942,17 +2943,15 @@ void cmGlobalGenerator::WriteSummary(cmTarget* target)
|
|
|
fout << "# Source files and their labels\n";
|
|
|
std::vector<cmSourceFile*> sources;
|
|
|
std::vector<std::string> configs;
|
|
|
- target->GetMakefile()->GetConfigurations(configs);
|
|
|
+ target->Target->GetMakefile()->GetConfigurations(configs);
|
|
|
if (configs.empty())
|
|
|
{
|
|
|
configs.push_back("");
|
|
|
}
|
|
|
- cmGeneratorTarget* gt =
|
|
|
- this->GetGeneratorTarget(target);
|
|
|
for(std::vector<std::string>::const_iterator ci = configs.begin();
|
|
|
ci != configs.end(); ++ci)
|
|
|
{
|
|
|
- gt->GetSourceFiles(sources, *ci);
|
|
|
+ target->GetSourceFiles(sources, *ci);
|
|
|
}
|
|
|
std::vector<cmSourceFile*>::const_iterator sourcesEnd
|
|
|
= cmRemoveDuplicates(sources);
|