diff options
author | Aleksei Shpakovskii <aleksei.shpakovskii@remarkable.no> | 2024-08-22 14:49:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-08-22 15:31:12 (GMT) |
commit | 2e634501fdc1b9b60e1f2a84a3a72cc8d125a09b (patch) | |
tree | 179652e9fc6945bcd4f1c66025d9aae52bbe9662 /Help | |
parent | 40e85e1551cbc836988a56b77255903de38f0927 (diff) | |
download | CMake-2e634501fdc1b9b60e1f2a84a3a72cc8d125a09b.zip CMake-2e634501fdc1b9b60e1f2a84a3a72cc8d125a09b.tar.gz CMake-2e634501fdc1b9b60e1f2a84a3a72cc8d125a09b.tar.bz2 |
Help/command/if: list all condition operators in precedence order overview
This section is near the top and so can serve as an exhaustive
table of contents for the things that `if()` can check.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/if.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index 06c2800..c6e1c61 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -41,13 +41,15 @@ Compound conditions are evaluated in the following order of precedence: 1. `Parentheses`_. -2. Unary tests such as `EXISTS`_, `COMMAND`_, and `DEFINED`_. +2. Unary tests such as `COMMAND`_, `POLICY`_, `TARGET`_, `TEST`_, + `EXISTS`_, `IS_READABLE`_, `IS_WRITABLE`_, `IS_EXECUTABLE`_, + `IS_DIRECTORY`_, `IS_SYMLINK`_, `IS_ABSOLUTE`_, and `DEFINED`_. 3. Binary tests such as `EQUAL`_, `LESS`_, `LESS_EQUAL`_, `GREATER`_, `GREATER_EQUAL`_, `STREQUAL`_, `STRLESS`_, `STRLESS_EQUAL`_, `STRGREATER`_, `STRGREATER_EQUAL`_, `VERSION_EQUAL`_, `VERSION_LESS`_, `VERSION_LESS_EQUAL`_, `VERSION_GREATER`_, `VERSION_GREATER_EQUAL`_, - `PATH_EQUAL`_, and `MATCHES`_. + `PATH_EQUAL`_, `IN_LIST`_, `IS_NEWER_THAN`_, and `MATCHES`_. 4. Unary logical operator `NOT`_. |