Don't generate subdir convenience rules for IMPORTED targets.

This was missing from commit c34968a9 (Port some of the generator
API to cmGeneratorTarget., 2012-10-10). The generator targets
stored with the cmMakefile include IMPORTED targets, unlike the
accessor for resgular targets. Before this patch, rules would
be generated for Qt5::Core for example, which result in broken
makefiles.
This commit is contained in:
Stephen Kelly 2013-11-29 01:33:53 +01:00
parent a60cd3d3c6
commit 02a545c534
1 changed files with 5 additions and 0 deletions

View File

@ -390,6 +390,11 @@ void cmLocalUnixMakefileGenerator3
(t->second->GetType() == cmTarget::INTERFACE_LIBRARY) ||
(t->second->GetType() == cmTarget::UTILITY))
{
if (t->second->Target->IsImported())
{
continue;
}
emitted.insert(t->second->GetName());
// for subdirs add a rule to build this specific target by name.