summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-01-26 20:06:07 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-01-26 20:06:07 (GMT)
commit2888b13ef9f8e05d2b2fc12f79e0d136fa5fb77c (patch)
tree104fdc2ab6b8cdc3519c905dfdceaeb9f424c1b1 /Source/cmIfCommand.h
parent52803bc8afed80a97b09884ae2fc4295cf4f18cd (diff)
downloadCMake-2888b13ef9f8e05d2b2fc12f79e0d136fa5fb77c.zip
CMake-2888b13ef9f8e05d2b2fc12f79e0d136fa5fb77c.tar.gz
CMake-2888b13ef9f8e05d2b2fc12f79e0d136fa5fb77c.tar.bz2
STYLE: improve IF documentation to cover elseif
Diffstat (limited to 'Source/cmIfCommand.h')
-rw-r--r--Source/cmIfCommand.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmIfCommand.h b/Source/cmIfCommand.h
index fcdbc09..1a89227 100644
--- a/Source/cmIfCommand.h
+++ b/Source/cmIfCommand.h
@@ -99,6 +99,11 @@ public:
" COMMAND1(ARGS ...)\n"
" COMMAND2(ARGS ...)\n"
" ...\n"
+ " ELSEIF(expression2)\n"
+ " # ELSEIF section.\n"
+ " COMMAND1(ARGS ...)\n"
+ " COMMAND2(ARGS ...)\n"
+ " ...\n"
" ELSE(expression)\n"
" # ELSE section.\n"
" COMMAND1(ARGS ...)\n"
@@ -107,8 +112,9 @@ public:
" ENDIF(expression)\n"
"Evaluates the given expression. If the result is true, the commands "
"in the THEN section are invoked. Otherwise, the commands in the "
- "ELSE section are invoked. The ELSE section is optional. Note that "
- "the same expression must be given to IF, ELSE, and ENDIF. Long "
+ "ELSE section are invoked. The ELSEIF and ELSE sections are "
+ "optional. You may have multiple ELSEIF clauses. Note that "
+ "the same expression must be given to IF, and ENDIF. Long "
"expressions can be used and the order or precedence is that the "
"EXISTS, COMMAND, and DEFINED operators will be evaluated first. "
"Then any EQUAL, LESS, GREATER, STRLESS, STRGREATER, STREQUAL, MATCHES "