diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 5ada88db48..6ca386c07c 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -391,6 +391,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.