mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
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.
This commit is contained in:
committed by
Brad King
parent
40e85e1551
commit
2e634501fd
@@ -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`_.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user