Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Help / policy / CMP0140.rst
1 CMP0140
2 -------
3
4 .. versionadded:: 3.25
5
6 The :command:`return` command checks its parameters.
7
8 The ``OLD`` behavior for this policy is to ignore any parameters given to the
9 command.
10 The ``NEW`` behavior is to check the validity of the parameters.
11
12 This policy was introduced in CMake version 3.25.
13 CMake version |release| warns when the policy is not set and uses
14 ``OLD`` behavior.  Use the :command:`cmake_policy` command to set
15 it to ``OLD`` or ``NEW`` explicitly.
16
17 .. include:: DEPRECATED.txt