Merge topic 'remove-old-compatibility'

381c446ff7 VS: Remove support for appending a platform to the generator name
dc24d88062 Remove compatibility with CMake versions older than 3.1
90d814f024 CMP0054: Remove support for OLD behavior
292aaffb78 Source: Remove unused cmCommandArgument{Lexer,Parser}
1150fae89a CMP0053: Remove support for OLD behavior
f0b1ca4d70 CMP0052: Remove support for OLD behavior
e4fddc8e37 CMP0051: Remove support for OLD behavior

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10205
This commit is contained in:
Brad King
2025-01-21 14:42:47 +00:00
committed by Kitware Robot
259 changed files with 223 additions and 7668 deletions

View File

@@ -1,9 +1,9 @@
.. versionchanged:: 4.0
Compatibility with versions of CMake older than 3.0 is removed.
Compatibility with versions of CMake older than 3.1 is removed.
Calls to :command:`cmake_minimum_required(VERSION)` or
:command:`cmake_policy(VERSION)` that do not specify at least
3.0 as their policy version (optionally via ``...<max>``)
3.1 as their policy version (optionally via ``...<max>``)
will produce an error in CMake 4.0 and above.
.. versionchanged:: 3.31

View File

@@ -87,9 +87,9 @@ Basic Expressions
A quoted string always evaluates to false unless:
* The string's value is one of the true constants, or
* Policy :policy:`CMP0054` is not set to ``NEW`` and the string's value
happens to be a variable name that is affected by :policy:`CMP0054`'s
behavior.
* in CMake versions prior to 4.0, policy :policy:`CMP0054` is not set
to ``NEW`` and the string's value happens to be a variable name that
is affected by :policy:`CMP0054`'s behavior.
Logic Operators
"""""""""""""""