mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-18 13:10:17 -06:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user