mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmIfCommand: Reject duplicate else() and misplaced elseif()
Closes: #14335
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user