From 9a1d4e4ba170f4ac34c80593bd2fe8e1481a1181 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Fri, 7 Oct 2016 20:13:33 +0200 Subject: cmTarget: Remove addition of zero when merging link libraries The size is always zero when this is called. --- Source/cmTarget.cxx | 1 - 1 file changed, 1 deletion(-) 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); -- cgit v0.12