diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-12-03 10:13:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-12-03 10:13:42 (GMT) |
commit | 1396ab80095f8f63702621b58e2ecc670203cc2f (patch) | |
tree | 5bf135d5b1b8e4ca30f149e34ec1ec9970441f5e /Source | |
parent | 65fb49ba3526fc46ce8b16dc2699e6832bc99afd (diff) | |
download | CMake-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.cxx | 2 |
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; } |