cmIfCommand: Reject duplicate else() and misplaced elseif()

Closes: #14335
This commit is contained in:
Gregor Jasny
2017-03-20 21:49:59 +01:00
committed by Brad King
parent 3be5896e01
commit edac95b955
15 changed files with 66 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ public:
cmIfFunctionBlocker()
{
this->HasRun = false;
this->ElseSeen = false;
this->ScopeDepth = 0;
}
~cmIfFunctionBlocker() CM_OVERRIDE {}
@@ -32,6 +33,7 @@ public:
std::vector<cmListFileFunction> Functions;
bool IsBlocking;
bool HasRun;
bool ElseSeen;
unsigned int ScopeDepth;
};