summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 55252da..0e20272 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -25,6 +25,13 @@ IsFunctionBlocked(const char *name, const std::vector<std::string> &args,
{
if (args == m_Args)
{
+ // if it was an else statement then we should change state
+ // and block this Else Command
+ if (!strcmp(name,"ELSE"))
+ {
+ m_IsBlocking = !m_IsBlocking;
+ return true;
+ }
return false;
}
else if(args.empty())