summaryrefslogtreecommitdiffstats
path: root/Source/cmExportLibraryDependenciesCommand.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-23 10:52:36 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-23 11:00:33 (GMT)
commit7b4b61a4d38e4c7fe3fe992a6263d8d1f0785858 (patch)
treef43eaa67777164ce5ba0dda2f381e35260d06b50 /Source/cmExportLibraryDependenciesCommand.cxx
parent22d58e07e5dc54e113ae7414dea604549b0cfc43 (diff)
downloadCMake-7b4b61a4d38e4c7fe3fe992a6263d8d1f0785858.zip
CMake-7b4b61a4d38e4c7fe3fe992a6263d8d1f0785858.tar.gz
CMake-7b4b61a4d38e4c7fe3fe992a6263d8d1f0785858.tar.bz2
cmMakefile: Define cmTargetMap type in cmMakefile instead of cmTarget
The `cmTargetMap` type is only used in the context of `cmMakefile`. Therefore it is the most appropriate place to declare it. This moves the `cmTarget.h/cmTargets` type definition to `cmMakefile::cmTargetMap`.
Diffstat (limited to 'Source/cmExportLibraryDependenciesCommand.cxx')
-rw-r--r--Source/cmExportLibraryDependenciesCommand.cxx3
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;