diff options
-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 |