Browse Source

hopefull another fix to if statements

Ken Martin 23 years ago
parent
commit
4852c21b6f
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Source/cmIfCommand.cxx

+ 7 - 0
Source/cmIfCommand.cxx

@@ -21,6 +21,13 @@ bool cmIfFunctionBlocker::
 IsFunctionBlocked(const char *name, const std::vector<std::string> &args, 
                   cmMakefile &mf)
 {
+  // always let if statements through
+  if (!strcmp(name,"IF"))
+    {
+    return false;
+    }
+  
+  // watch for our ELSE or ENDIF
   if (!strcmp(name,"ELSE") || !strcmp(name,"ENDIF"))
     {
     if (args == m_Args)