Ver código fonte

cmGeneratorTarget: Clear cached link implementation when a source is added

Adding a source file at generate time can cause the linker language or
other settings to change that affect `GetLinkImplementationLibraries`
and friends.
Brad King 4 anos atrás
pai
commit
ed3aad97e3
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      Source/cmGeneratorTarget.cxx

+ 1 - 0
Source/cmGeneratorTarget.cxx

@@ -697,6 +697,7 @@ void cmGeneratorTarget::ClearSourcesCache()
   this->SourcesAreContextDependent = Tribool::Indeterminate;
   this->Objects.clear();
   this->VisitedConfigsForObjects.clear();
+  this->LinkImplMap.clear();
 }
 
 void cmGeneratorTarget::AddSourceCommon(const std::string& src, bool before)