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
cmIfCommand.h.patch
Description: Binary data
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake