GHS: Don't attempt to generate for IMPORTED or INTERFACE targets.

This commit is contained in:
Stephen Kelly 2015-05-23 14:45:14 +02:00
parent 550e08b012
commit a4d230af7d
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,11 @@ void cmLocalGhsMultiGenerator::Generate()
for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end();
++l)
{
if (l->second->Target->GetType() == cmTarget::INTERFACE_LIBRARY
|| l->second->Target->IsImported())
{
continue;
}
cmGhsMultiTargetGenerator tg(l->second->Target);
tg.Generate();
}