diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 10:33:27 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-12 18:08:49 (GMT) |
commit | 04b307b961a34c00f72d9031817ce4f918288701 (patch) | |
tree | 10277ffdc4fc70a9c606843c1a6013b66cf4be52 | |
parent | 0f1f324b0dd7147850f923ab266873bd8a4a4353 (diff) | |
download | CMake-04b307b961a34c00f72d9031817ce4f918288701.zip CMake-04b307b961a34c00f72d9031817ce4f918288701.tar.gz CMake-04b307b961a34c00f72d9031817ce4f918288701.tar.bz2 |
cmake: Simplify CommandExists method.
-rw-r--r-- | Source/cmake.cxx | 3 |
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 |