From 4852c21b6f3cdd853949aefd5c6ab82510abeb4d Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 23 Sep 2002 09:41:01 -0400 Subject: hopefull another fix to if statements --- Source/cmIfCommand.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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 &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) -- cgit v0.12