summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-08-09 16:00:49 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-08-09 16:00:49 (GMT)
commit6deb5bbe70e6d0498df3fbb319a9b4857410536a (patch)
tree3ff14ac5f23626b0c585dbf7a617e410fb6d8216 /Source/cmIfCommand.cxx
parent67547494dba2bf2f9c45fa60fd0a1a04f3339cb8 (diff)
downloadCMake-6deb5bbe70e6d0498df3fbb319a9b4857410536a.zip
CMake-6deb5bbe70e6d0498df3fbb319a9b4857410536a.tar.gz
CMake-6deb5bbe70e6d0498df3fbb319a9b4857410536a.tar.bz2
better IF ELSE handling
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())