diff options
author | Brad King <brad.king@kitware.com> | 2016-04-01 14:26:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-01 19:44:16 (GMT) |
commit | 0e44f4894f23d5eccd8d360f3420c832f9433a20 (patch) | |
tree | c155f2d4761efd7243aeea4be92c19f705b3a1b0 /Source/cmMakefile.cxx | |
parent | bc30f8b5e66cb9c15fd224f5e51454c0bc66c67e (diff) | |
download | CMake-0e44f4894f23d5eccd8d360f3420c832f9433a20.zip CMake-0e44f4894f23d5eccd8d360f3420c832f9433a20.tar.gz CMake-0e44f4894f23d5eccd8d360f3420c832f9433a20.tar.bz2 |
Rename local target lookup methods to clarify purpose
Rename methods:
* `cmMakefile::Find{ => LocalNonAlias}Target`
* `cmLocalGenerator::Find{ => LocalNonAlias}GeneratorTarget`
These names clarify that they are for directory-local target names
and do not consider alias targets.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 598f8c4..df687d0 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -4058,7 +4058,7 @@ std::vector<std::string> cmMakefile::GetPropertyKeys() const return this->StateSnapshot.GetDirectory().GetPropertyKeys(); } -cmTarget* cmMakefile::FindTarget(const std::string& name) const +cmTarget* cmMakefile::FindLocalNonAliasTarget(const std::string& name) const { cmTargets::iterator i = this->Targets.find( name ); if ( i != this->Targets.end() ) @@ -4235,7 +4235,7 @@ cmTarget* cmMakefile::FindTargetToUse(const std::string& name, } // Look for a target built in this directory. - if(cmTarget* t = this->FindTarget(name)) + if(cmTarget* t = this->FindLocalNonAliasTarget(name)) { return t; } |