diff options
author | Brad King <brad.king@kitware.com> | 2015-05-08 19:41:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-12 13:06:49 (GMT) |
commit | 226df303f955a8756cda7544f58242b52ea7ec2e (patch) | |
tree | f4ad45a19cb1b2387b93f76355f06d19c8b9dbfd /Help/policy/CMP0061.rst | |
parent | 28e7a135e001afb36a7cff8e896ebac75390dde0 (diff) | |
download | CMake-226df303f955a8756cda7544f58242b52ea7ec2e.zip CMake-226df303f955a8756cda7544f58242b52ea7ec2e.tar.gz CMake-226df303f955a8756cda7544f58242b52ea7ec2e.tar.bz2 |
CTest: Stop telling 'make' to ignore errors with -i
Add policy CMP0061 to maintain compatibility for existing projects.
Diffstat (limited to 'Help/policy/CMP0061.rst')
-rw-r--r-- | Help/policy/CMP0061.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Help/policy/CMP0061.rst b/Help/policy/CMP0061.rst new file mode 100644 index 0000000..069a1ab --- /dev/null +++ b/Help/policy/CMP0061.rst @@ -0,0 +1,24 @@ +CMP0061 +------- + +CTest does not by default tell ``make`` to ignore errors (``-i``). + +The :command:`ctest_build` and :command:`build_command` commands no +longer generate build commands for :ref:`Makefile Generators` with +the ``-i`` option. Previously this was done to help build as much +of tested projects as possible. However, this behavior is not +consistent with other generators and also causes the return code +of the ``make`` tool to be meaningless. + +Of course users may still add this option manually by setting +:variable:`CTEST_BUILD_COMMAND` or the ``MAKECOMMAND`` cache entry. +See the :ref:`CTest Build Step` ``MakeCommand`` setting documentation +for their effects. + +The ``OLD`` behavior for this policy is to add ``-i`` to ``make`` +calls in CTest. The ``NEW`` behavior for this policy is to not +add ``-i``. + +This policy was introduced in CMake version 3.3. Unlike most policies, +CMake version |release| does *not* warn when this policy is not set and +simply uses OLD behavior. |