summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-01 12:35:18 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-11 16:00:56 (GMT)
commit3660d063bc005aa13e7ee4836aef842a91cc87f1 (patch)
tree38981b7ee55cad47bef678d591eb203695aff70e /Source/cmTarget.cxx
parent5c28495fba56ea488a5a1df323f3c89ff7d28a7e (diff)
downloadCMake-3660d063bc005aa13e7ee4836aef842a91cc87f1.zip
CMake-3660d063bc005aa13e7ee4836aef842a91cc87f1.tar.gz
CMake-3660d063bc005aa13e7ee4836aef842a91cc87f1.tar.bz2
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.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files 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)
{