CMP0061.rst 1.0 KB

1234567891011121314151617181920212223242526272829
  1. CMP0061
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. .. versionadded:: 3.3
  6. CTest does not by default tell ``make`` to ignore errors (``-i``).
  7. The :command:`ctest_build` and :command:`build_command` commands no
  8. longer generate build commands for :ref:`Makefile Generators` with
  9. the ``-i`` option. Previously this was done to help build as much
  10. of tested projects as possible. However, this behavior is not
  11. consistent with other generators and also causes the return code
  12. of the ``make`` tool to be meaningless.
  13. Of course users may still add this option manually by setting
  14. :variable:`CTEST_BUILD_COMMAND` or the ``MAKECOMMAND`` cache entry.
  15. See the :ref:`CTest Build Step` ``MakeCommand`` setting documentation
  16. for their effects.
  17. The ``OLD`` behavior for this policy is to add ``-i`` to ``make``
  18. calls in CTest. The ``NEW`` behavior for this policy is to not
  19. add ``-i``.
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.3
  21. .. |WARNED_OR_DID_NOT_WARN| replace:: did *not* warn
  22. .. include:: include/REMOVED_EPILOGUE.rst