CMP0055.rst 738 B

123456789101112131415161718192021
  1. CMP0055
  2. -------
  3. .. versionadded:: 3.2
  4. Strict checking for the :command:`break` command.
  5. CMake 3.1 and lower allowed calls to the :command:`break` command
  6. outside of a loop context and also ignored any given arguments.
  7. This was undefined behavior.
  8. The ``OLD`` behavior for this policy is to allow :command:`break` to be placed
  9. outside of loop contexts and ignores any arguments. The ``NEW`` behavior for this
  10. policy is to issue an error if a misplaced break or any arguments are found.
  11. This policy was introduced in CMake version 3.2.
  12. CMake version |release| warns when the policy is not set and uses
  13. ``OLD`` behavior. Use the :command:`cmake_policy` command to set it to ``OLD`` or
  14. ``NEW`` explicitly.
  15. .. include:: DEPRECATED.txt