summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-07 18:13:33 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-07 18:13:33 (GMT)
commit9a1d4e4ba170f4ac34c80593bd2fe8e1481a1181 (patch)
treed76812f3d7af416ec251c4e8878a3126cc9187d7 /Source/cmTarget.cxx
parent8391b3015a82909828b7ada98e76d45aa11b892b (diff)
downloadCMake-9a1d4e4ba170f4ac34c80593bd2fe8e1481a1181.zip
CMake-9a1d4e4ba170f4ac34c80593bd2fe8e1481a1181.tar.gz
CMake-9a1d4e4ba170f4ac34c80593bd2fe8e1481a1181.tar.bz2
cmTarget: Remove addition of zero when merging link libraries
The size is always zero when this is called.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 28ef04a..5b878d3 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -483,7 +483,6 @@ void cmTarget::MergeLinkLibraries(cmMakefile& mf, const std::string& selfname,
// Only add on libraries we haven't added on before.
// Assumption: the global link libraries could only grow, never shrink
LinkLibraryVectorType::const_iterator i = libs.begin();
- i += this->PrevLinkedLibraries.size();
for (; i != libs.end(); ++i) {
// This is equivalent to the target_link_libraries plain signature.
this->AddLinkLibrary(mf, selfname, i->first, i->second);