diff options
Diffstat (limited to 'Source/cmExportLibraryDependenciesCommand.cxx')
-rw-r--r-- | Source/cmExportLibraryDependenciesCommand.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmExportLibraryDependenciesCommand.cxx b/Source/cmExportLibraryDependenciesCommand.cxx index 0a0646c..b60a053 100644 --- a/Source/cmExportLibraryDependenciesCommand.cxx +++ b/Source/cmExportLibraryDependenciesCommand.cxx @@ -76,8 +76,7 @@ void cmExportLibraryDependenciesCommand::ConstFinalPass() const std::map<std::string, std::string> libDepsNew; std::map<std::string, std::string> libTypes; for (cmMakefile* local : locals) { - const cmTargets& tgts = local->GetTargets(); - for (auto const& tgt : tgts) { + for (auto const& tgt : local->GetTargets()) { // Get the current target. cmTarget const& target = tgt.second; |