diff options
author | Brad King <brad.king@kitware.com> | 2021-06-04 16:13:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-04 16:14:04 (GMT) |
commit | ed3aad97e3d3cb27637722fabb0ae3a5611daf5c (patch) | |
tree | 88c9a9ba532d49729a92481a992d754e5ba3c79b /Source/cmGeneratorTarget.cxx | |
parent | 26e75b474bb2b0b3216cc513cc50e91ae5dbff28 (diff) | |
download | CMake-ed3aad97e3d3cb27637722fabb0ae3a5611daf5c.zip CMake-ed3aad97e3d3cb27637722fabb0ae3a5611daf5c.tar.gz CMake-ed3aad97e3d3cb27637722fabb0ae3a5611daf5c.tar.bz2 |
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.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 5deb2df..6209f3e 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/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) |