CMP0055.rst 644 B

1234567891011121314151617181920
  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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.2
  12. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  13. .. include:: STANDARD_ADVICE.txt
  14. .. include:: DEPRECATED.txt