diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-07 18:13:33 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-07 18:13:33 (GMT) |
commit | 3e8d47d18b4db6b4621ee5e4864dde234ad8a282 (patch) | |
tree | 42f4b9435cf32ae42be09c8d3e710af23f426dff /Source/cmMakefile.cxx | |
parent | 3b4895fa35e4a96022abd99b07002a7d2ab3a968 (diff) | |
download | CMake-3e8d47d18b4db6b4621ee5e4864dde234ad8a282.zip CMake-3e8d47d18b4db6b4621ee5e4864dde234ad8a282.tar.gz CMake-3e8d47d18b4db6b4621ee5e4864dde234ad8a282.tar.bz2 |
cmMakefile: Remove useless link directory container
It is never populated - a find will never find anything.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index c022b44..0efd92c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1857,10 +1857,7 @@ void cmMakefile::AddGlobalLinkInformation(const std::string& name, if (*j->rbegin() == '/') { newdir = j->substr(0, j->size() - 1); } - if (std::find(this->LinkDirectories.begin(), this->LinkDirectories.end(), - newdir) == this->LinkDirectories.end()) { - target.AddLinkDirectory(*j); - } + target.AddLinkDirectory(*j); } } |