mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-06 15:19:56 -06:00
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
22 lines
460 B
CMake
22 lines
460 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(InvalidArgument1)
|
|
run_cmake(IsDirectory)
|
|
run_cmake(IsDirectoryLong)
|
|
run_cmake(duplicate-deep-else)
|
|
run_cmake(duplicate-else)
|
|
run_cmake(duplicate-else-after-elseif)
|
|
run_cmake(elseif-message)
|
|
run_cmake(misplaced-elseif)
|
|
|
|
run_cmake(unbalanced-parenthesis)
|
|
|
|
run_cmake(MatchesSelf)
|
|
run_cmake(IncompleteMatches)
|
|
run_cmake(IncompleteMatchesFail)
|
|
|
|
run_cmake(TestNameThatExists)
|
|
run_cmake(TestNameThatDoesNotExist)
|
|
|
|
run_cmake_script(AndOr)
|