diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-09-23 13:41:01 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-09-23 13:41:01 (GMT) |
commit | 4852c21b6f3cdd853949aefd5c6ab82510abeb4d (patch) | |
tree | 1e85c57f200fa04309286a13cbbd6a5689a1b49e | |
parent | 38baabc66558908af2148a6c044f02bb01edb9f1 (diff) | |
download | CMake-4852c21b6f3cdd853949aefd5c6ab82510abeb4d.zip CMake-4852c21b6f3cdd853949aefd5c6ab82510abeb4d.tar.gz CMake-4852c21b6f3cdd853949aefd5c6ab82510abeb4d.tar.bz2 |
hopefull another fix to if statements
-rw-r--r-- | Source/cmIfCommand.cxx | 7 |
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) |