summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmIfCommand.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index ebac504..4fb9bfd 100644
--- a/Source/cmIfCommand.cxx
+++ b/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)