CMP0061.rst 1005 B

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