2015-04-27 22:25:09 +02:00
|
|
|
CMP0055
|
|
|
|
-------
|
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
.. versionadded:: 3.2
|
|
|
|
|
2015-04-27 22:25:09 +02:00
|
|
|
Strict checking for the :command:`break` command.
|
|
|
|
|
|
|
|
CMake 3.1 and lower allowed calls to the :command:`break` command
|
|
|
|
outside of a loop context and also ignored any given arguments.
|
|
|
|
This was undefined behavior.
|
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
The ``OLD`` behavior for this policy is to allow :command:`break` to be placed
|
|
|
|
outside of loop contexts and ignores any arguments. The ``NEW`` behavior for this
|
2015-04-27 22:25:09 +02:00
|
|
|
policy is to issue an error if a misplaced break or any arguments are found.
|
|
|
|
|
2024-04-14 22:45:38 +02:00
|
|
|
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.2
|
|
|
|
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
|
|
|
|
.. include:: STANDARD_ADVICE.txt
|
2015-08-17 11:37:30 +02:00
|
|
|
|
|
|
|
.. include:: DEPRECATED.txt
|