[Cmake-commits] [cmake-commits] martink committed cmIfCommand.h 1.52 1.53

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Feb 12 12:50:14 EST 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv16307

Modified Files:
	cmIfCommand.h 
Log Message:
ENH: fix documentation and add docs on parenthetical expressions


Index: cmIfCommand.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmIfCommand.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -C 2 -d -r1.52 -r1.53
*** cmIfCommand.h	21 Jan 2009 14:48:20 -0000	1.52
--- cmIfCommand.h	12 Feb 2009 17:50:12 -0000	1.53
***************
*** 119,125 ****
        "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 "
        "will be evaluated. Then NOT operators and finally AND, OR operators "
--- 119,126 ----
        "else section are invoked.  The elseif and else sections are "
        "optional. You may have multiple elseif clauses. Note that "
!       "the expression in the else and endif clause is optional. Long "
!       "expressions can be used and there is a traditional order of precedence. "
!       "Parenthetical expressions are evaluated first followed by unary operators "
!       "such as EXISTS, COMMAND, and DEFINED. "
        "Then any EQUAL, LESS, GREATER, STRLESS, STRGREATER, STREQUAL, MATCHES "
        "will be evaluated. Then NOT operators and finally AND, OR operators "
***************
*** 155,159 ****
        "Behavior is well-defined only for full paths.\n"
        "  if(IS_ABSOLUTE path)\n"
!       "True if the given path is an absolute path.\n "
        "  if(variable MATCHES regex)\n"
        "  if(string MATCHES regex)\n"
--- 156,160 ----
        "Behavior is well-defined only for full paths.\n"
        "  if(IS_ABSOLUTE path)\n"
!       "True if the given path is an absolute path.\n"
        "  if(variable MATCHES regex)\n"
        "  if(string MATCHES regex)\n"
***************
*** 183,187 ****
        "  if(DEFINED variable)\n"
        "True if the given variable is defined. It does not matter if the "
!       "variable is true or false just if it has been set.";
      }
  
--- 184,194 ----
        "  if(DEFINED variable)\n"
        "True if the given variable is defined. It does not matter if the "
!       "variable is true or false just if it has been set.\n"
!       "  if((expression) AND (expression OR (expression)))\n"
!       "The expressions inside the parenthesis are evaluated first and then the remaining "
!       "expression is evaluated as in the previous examples. Where there are nested "
!       "parenthesis the innermost are evaluated as part of evaluating the expression "
!       "that contains them."
!       ;
      }
  



More information about the Cmake-commits mailing list