summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetsCommand.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/cmInstallTargetsCommand.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/cmInstallTargetsCommand.cxx')
-rw-r--r--Source/cmInstallTargetsCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmInstallTargetsCommand.cxx b/Source/cmInstallTargetsCommand.cxx
index 7e67d4e..ef07e2c 100644
--- a/Source/cmInstallTargetsCommand.cxx
+++ b/Source/cmInstallTargetsCommand.cxx
@@ -23,7 +23,7 @@ bool cmInstallTargetsCommand::InitialPass(std::vector<std::string> const& args,
// Enable the install target.
this->Makefile->GetGlobalGenerator()->EnableInstallTarget();
- cmTargets& tgts = this->Makefile->GetTargets();
+ cmMakefile::cmTargetMap& tgts = this->Makefile->GetTargets();
std::vector<std::string>::const_iterator s = args.begin();
++s;
std::string runtime_dir = "/bin";
@@ -38,7 +38,7 @@ bool cmInstallTargetsCommand::InitialPass(std::vector<std::string> const& args,
runtime_dir = *s;
} else {
- cmTargets::iterator ti = tgts.find(*s);
+ cmMakefile::cmTargetMap::iterator ti = tgts.find(*s);
if (ti != tgts.end()) {
ti->second.SetInstallPath(args[0]);
ti->second.SetRuntimeInstallPath(runtime_dir);