summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-03 10:13:42 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-12-03 10:13:42 (GMT)
commit1396ab80095f8f63702621b58e2ecc670203cc2f (patch)
tree5bf135d5b1b8e4ca30f149e34ec1ec9970441f5e /Source
parent65fb49ba3526fc46ce8b16dc2699e6832bc99afd (diff)
downloadCMake-1396ab80095f8f63702621b58e2ecc670203cc2f.zip
CMake-1396ab80095f8f63702621b58e2ecc670203cc2f.tar.gz
CMake-1396ab80095f8f63702621b58e2ecc670203cc2f.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index fe68a8a..8e4ce8b 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -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;
}