CMP0055.rst 712 B

123456789101112131415161718192021
  1. CMP0055
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. .. versionadded:: 3.2
  6. Strict checking for the :command:`break` command.
  7. CMake 3.1 and lower allowed calls to the :command:`break` command
  8. outside of a loop context and also ignored any given arguments.
  9. This was undefined behavior.
  10. The ``OLD`` behavior for this policy is to allow :command:`break` to be placed
  11. outside of loop contexts and ignores any arguments. The ``NEW`` behavior for this
  12. policy is to issue an error if a misplaced break or any arguments are found.
  13. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.2
  14. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  15. .. include:: include/REMOVED_EPILOGUE.rst