Commit 04b307b9 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmake: Simplify CommandExists method.

parent 0f1f324b
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment