[cmake-commits] martink committed cmIfCommand.h 1.40 1.41
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jan 26 15:06:10 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv30045/Source
Modified Files:
cmIfCommand.h
Log Message:
STYLE: improve IF documentation to cover elseif
Index: cmIfCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- cmIfCommand.h 12 Dec 2006 15:07:20 -0000 1.40
+++ cmIfCommand.h 26 Jan 2007 20:06:07 -0000 1.41
@@ -99,6 +99,11 @@
" 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 @@
" 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 "
More information about the Cmake-commits
mailing list