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:
parent
a60cd3d3c6
commit
02a545c534
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue