mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 21:40:15 +08:00
cmake: Simplify CommandExists method.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user