[CMake] Patch for IF documentation.
Brad King
brad.king at kitware.com
Mon Jun 12 12:07:07 EDT 2006
Miguel A. Figueroa-Villanueva wrote:
> 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.
Thanks, I'll commit it.
-Brad
More information about the CMake
mailing list