Merge topic 'if-optimize'

51f8de81 if(): avoid one needless string compare for all if() statements
This commit is contained in:
Brad King 2015-02-23 10:26:48 -05:00 committed by CMake Topic Stage
commit 9627c5238a
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ IsFunctionBlocked(const cmListFileFunction& lff,
{
this->ScopeDepth++;
}
if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
else if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
{
this->ScopeDepth--;
// if this is the endif for this if statement, then start executing