summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-11 10:33:27 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-12 18:08:49 (GMT)
commit04b307b961a34c00f72d9031817ce4f918288701 (patch)
tree10277ffdc4fc70a9c606843c1a6013b66cf4be52 /Source/cmake.cxx
parent0f1f324b0dd7147850f923ab266873bd8a4a4353 (diff)
downloadCMake-04b307b961a34c00f72d9031817ce4f918288701.zip
CMake-04b307b961a34c00f72d9031817ce4f918288701.tar.gz
CMake-04b307b961a34c00f72d9031817ce4f918288701.tar.bz2
cmake: Simplify CommandExists method.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index f22989d..f624214 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -222,8 +222,7 @@ void cmake::CleanupCommandsAndMacros()
bool cmake::CommandExists(const std::string& name) const
{
- std::string sName = cmSystemTools::LowerCase(name);
- return (this->Commands.find(sName) != this->Commands.end());
+ return this->GetCommand(name) ? true : false;
}
cmCommand *cmake::GetCommand(const std::string& name) const