Don't generate self-references for system include directories.
Targets which link directly to themselves should not result in generate-time errors (reported by the DAG checker). Self-links are handled separately with policy CMP0038.
This commit is contained in:
parent
65fb49ba35
commit
1396ab8009
|
@ -1063,7 +1063,7 @@ void cmTarget::FinalizeSystemIncludeDirectories()
|
|||
std::string targetName = cge->Evaluate(this->Makefile, 0,
|
||||
false, this, 0, 0);
|
||||
cmTarget *tgt = this->Makefile->FindTargetToUse(targetName.c_str());
|
||||
if (!tgt)
|
||||
if (!tgt || tgt == this)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue