[CMake] Patch for IF documentation.

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Sat Jun 10 02:16:39 EDT 2006


I think the following documentation for the IF command:

<snip>
         IF(variable1 OR variable2)

       True if either variable would be considered true individually.

         IF(COMMAND command-name)

       True if the given name is a file or directory.

         IF(EXISTS file-name)
         IF(EXISTS directory-name)

       True if the given name is a directory.

         IF(IS_DIRECTORY directory-name)

       True if the named file or directory exists.

         IF(variable MATCHES regex)
         IF(string MATCHES regex)

       True if the given string or variable's value matches the given regular
       expression.
<snip>

should read something like:

<snip>
         IF(variable1 OR variable2)

       True if either variable would be considered true individually.

         IF(COMMAND command-name)

       True if the given name is a command that can be invoked.

         IF(EXISTS file-name)
         IF(EXISTS directory-name)

       True if the named file or directory exists.

         IF(IS_DIRECTORY directory-name)

       True if the given name is a directory.

         IF(variable MATCHES regex)
         IF(string MATCHES regex)

       True if the given string or variable's value matches the given regular
       expression.
<snip>

If this is correct, the attached file should work.

--Miguel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmIfCommand.h.patch
Type: application/octet-stream
Size: 1074 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060610/a9703a3f/cmIfCommand.h.obj


More information about the CMake mailing list