diff options
author | Brad King <brad.king@kitware.com> | 2022-02-09 19:16:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-09 19:24:43 (GMT) |
commit | 41adfc6b041474f6985ab72efcfb02b2b64a6b8d (patch) | |
tree | 3624c5d8c5f34145f26709cf164ee840210f1d19 /Tests/RunCMake/if/AndOr-stdout.txt | |
parent | a15cc7706da8f4a1833539be3f37fbc63ee20e36 (diff) | |
download | CMake-41adfc6b041474f6985ab72efcfb02b2b64a6b8d.zip CMake-41adfc6b041474f6985ab72efcfb02b2b64a6b8d.tar.gz CMake-41adfc6b041474f6985ab72efcfb02b2b64a6b8d.tar.bz2 |
Help: Clarify precedence of AND and OR in 'if' conditions
The wording update in commit b74819e4fe (Help: Format 'if' command
documentation, 2013-12-18, v3.0.0-rc1~227^2~1) incorrectly implied that
`AND` has higher precedence than `OR`. Although this is common in many
languages, it has never been true in CMake's implementation. Revise
the wording to clarify the precedence.
Add a test case demonstrating the order.
Fixes: #23207
Diffstat (limited to 'Tests/RunCMake/if/AndOr-stdout.txt')
-rw-r--r-- | Tests/RunCMake/if/AndOr-stdout.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/if/AndOr-stdout.txt b/Tests/RunCMake/if/AndOr-stdout.txt new file mode 100644 index 0000000..9fd395b --- /dev/null +++ b/Tests/RunCMake/if/AndOr-stdout.txt @@ -0,0 +1 @@ +-- OR and AND correctly evaluated left to right |