cmExportSet: default destructor

This commit is contained in:
Tushar Maheshwari
2019-09-08 14:44:55 +05:30
parent 9b8a1f7c28
commit 6511fa6f33
7 changed files with 34 additions and 31 deletions

View File

@@ -283,7 +283,8 @@ void cmExportBuildFileGenerator::GetTargets(
std::vector<std::string>& targets) const
{
if (this->ExportSet) {
for (cmTargetExport* te : *this->ExportSet->GetTargetExports()) {
for (std::unique_ptr<cmTargetExport> const& te :
this->ExportSet->GetTargetExports()) {
targets.push_back(te->TargetName);
}
return;