CMP0061¶
警告
該方針的 OLD 行為已在 CMake 版本 4.0 中移除。該方針必須透過呼叫 cmake_minimum_required() 或 cmake_policy() 設定為 NEW。
在 3.3 版被加入.
CTest does not by default tell make to ignore errors (-i).
The ctest_build() and build_command() commands no
longer generate build commands for Makefile 生成器 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
CTEST_BUILD_COMMAND or the MAKECOMMAND cache entry.
See the 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.
此方針於 CMake 版本 3.3 中引入。在 CMake 版本 4.0 移除之前,它可以透過 cmake_policy() 或 cmake_minimum_required() 設定。如果未設定,CMake did not warn,並使用 OLD 行為。