summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-20 16:18:23 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-21 08:05:03 (GMT)
commitbd82bb4787410a0bdd6120b8c449f5d31ecc4c28 (patch)
tree3a30000203c940846e3ef945a1ea60c9095f19a5 /Source
parente98799105bdb296e8d9f5b3ef5cf99bcebcafc40 (diff)
downloadCMake-bd82bb4787410a0bdd6120b8c449f5d31ecc4c28.zip
CMake-bd82bb4787410a0bdd6120b8c449f5d31ecc4c28.tar.gz
CMake-bd82bb4787410a0bdd6120b8c449f5d31ecc4c28.tar.bz2
Clear the link information in ClearLinkMaps.
The cache here needs to be cleared if GetLinkInformation is called at configure-time, such as during an export(). The next commit does exactly that, and without this patch, the LinkLanguage test would fail.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c1c484b..2600db5 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1520,6 +1520,13 @@ void cmTarget::ClearLinkMaps()
this->Internal->LinkImplMap.clear();
this->Internal->LinkInterfaceMap.clear();
this->Internal->LinkClosureMap.clear();
+ for (cmTargetLinkInformationMap::const_iterator it
+ = this->LinkInformation.begin();
+ it != this->LinkInformation.end(); ++it)
+ {
+ delete it->second;
+ }
+ this->LinkInformation.clear();
}
//----------------------------------------------------------------------------