Browse Source

cmGeneratorTarget: Give temporary link impl item an explicit name

Brad King 4 years ago
parent
commit
96809a8541
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmGeneratorTarget.cxx

+ 2 - 2
Source/cmGeneratorTarget.cxx

@@ -7490,8 +7490,8 @@ void cmGeneratorTarget::ComputeLinkImplementationLibraries(
       }
 
       // The entry is meant for this configuration.
-      impl.Libraries.emplace_back(this->ResolveLinkItem(name, *btIt, lg),
-                                  evaluated != *le);
+      cmLinkItem item = this->ResolveLinkItem(name, *btIt, lg);
+      impl.Libraries.emplace_back(std::move(item), evaluated != *le);
     }
 
     std::set<std::string> const& seenProps = cge->GetSeenTargetProperties();