Always access target location from a cmGeneratorTarget instance.

This commit is contained in:
Stephen Kelly
2015-07-25 21:28:36 +02:00
parent 5b60eaf619
commit c7a8e74b8c
4 changed files with 15 additions and 11 deletions

View File

@@ -591,7 +591,9 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
}
else
{
location = target->GetLocation(buildType);
cmGeneratorTarget* gt =
this->GlobalGenerator->GetGeneratorTarget(target);
location = gt->Target->GetLocation(buildType);
}
fout<<" <Option output=\"" << location