CMP0061.rst 1.0 KB

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. This policy was introduced in CMake version 3.3. Unlike most policies,
  19. CMake version |release| does *not* warn when this policy is not set and
  20. simply uses ``OLD`` behavior.
  21. .. include:: DEPRECATED.txt