mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-10 19:39:52 -05:00
if(): avoid one needless string compare for all if() statements
If it's known that it is an "if" it can't be an "elseif".
This commit is contained in:
@@ -45,7 +45,7 @@ IsFunctionBlocked(const cmListFileFunction& lff,
|
|||||||
{
|
{
|
||||||
this->ScopeDepth++;
|
this->ScopeDepth++;
|
||||||
}
|
}
|
||||||
if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
|
else if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
|
||||||
{
|
{
|
||||||
this->ScopeDepth--;
|
this->ScopeDepth--;
|
||||||
// if this is the endif for this if statement, then start executing
|
// if this is the endif for this if statement, then start executing
|
||||||
|
|||||||
Reference in New Issue
Block a user