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:
Stephen Kelly 2013-12-03 11:13:42 +01:00
parent 65fb49ba35
commit 1396ab8009
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}