From 3660d063bc005aa13e7ee4836aef842a91cc87f1 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 1 Jan 2015 13:35:18 +0100 Subject: cmTarget: Use insert instead of std::copy. insert can reserve() memory in the container, and this is more-consistent with the rest of CMake now. --- Source/cmTarget.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index c8fbf61..d454e89 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -6058,8 +6058,8 @@ cmTargetInternals::ComputeLinkInterfaceLibraries( // The link implementation is the default link interface. cmTarget::LinkImplementationLibraries const* impl = thisTarget->GetLinkImplementationLibrariesInternal(config, headTarget); - std::copy(impl->Libraries.begin(), impl->Libraries.end(), - std::back_inserter(iface.Libraries)); + iface.Libraries.insert(iface.Libraries.end(), + impl->Libraries.begin(), impl->Libraries.end()); if(thisTarget->PolicyStatusCMP0022 == cmPolicies::WARN && !this->PolicyWarnedCMP0022 && !usage_requirements_only) { -- cgit v0.12