CMP0016¶
警告
該方針的 OLD
行為已在 CMake 版本 4.0 中移除。該方針必須透過呼叫 cmake_minimum_required()
或 cmake_policy()
設定為 NEW
。
target_link_libraries()
reports error if its only argument
is not a target.
In CMake 2.8.2 and lower the target_link_libraries()
command silently
ignored if it was called with only one argument, and this argument
wasn't a valid target. In CMake 2.8.3 and above it reports an error
in this case.
This policy was introduced in CMake version 2.8.3.
Prior to removal in CMake version 4.0, it could be
set by cmake_policy()
or cmake_minimum_required()
.
If it was not set, CMake warned, and used OLD
behavior.