diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-25 12:22:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-27 06:44:26 (GMT) |
commit | 79c3a2a8f72ea175533da9f323f88c507220486e (patch) | |
tree | 624bff47e0a7b47392b422a6f4920ccd65456674 /Source/cmLocalGenerator.cxx | |
parent | c389f8bb07e900d805ca3163f47b06e3dbe4303b (diff) | |
download | CMake-79c3a2a8f72ea175533da9f323f88c507220486e.zip CMake-79c3a2a8f72ea175533da9f323f88c507220486e.tar.gz CMake-79c3a2a8f72ea175533da9f323f88c507220486e.tar.bz2 |
cmGlobalGenerator: Remove map from cmTarget to cmGeneratorTarget
The configure-time and generate-time types should be completely
independent.
Add ownership of cmGeneratorTarget instances to the cmLocalGenerator.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index ec7c29f..d92cbea 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -62,6 +62,8 @@ cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg, cmLocalGenerator::~cmLocalGenerator() { + cmDeleteAll(this->GeneratorTargets); + cmDeleteAll(this->OwnedImportedGeneratorTargets); } void cmLocalGenerator::IssueMessage(cmake::MessageType t, @@ -460,6 +462,11 @@ void cmLocalGenerator::AddImportedGeneratorTarget(cmGeneratorTarget* gt) this->ImportedGeneratorTargets.push_back(gt); } +void cmLocalGenerator::AddOwnedImportedGeneratorTarget(cmGeneratorTarget* gt) +{ + this->OwnedImportedGeneratorTargets.push_back(gt); +} + struct NamedGeneratorTargetFinder { NamedGeneratorTargetFinder(std::string const& name) |