mirror of
https://github.com/reactos/CMake.git
synced 2024-12-03 17:11:04 +00:00
482a3bf3f0
The most likely documentation page a project author will read in response to a policy warning is the page for the policy itself. Add to every policy documentation page a note explicitly stating that the OLD behavior is deprecated. Also mention this in the cmake_policy() command documentation that explains how to set a policy to OLD. Suggested-by: Fraser Hutchison <fraser.hutchison@gmail.com>
26 lines
857 B
ReStructuredText
26 lines
857 B
ReStructuredText
CMP0004
|
|
-------
|
|
|
|
Libraries linked may not have leading or trailing whitespace.
|
|
|
|
CMake versions 2.4 and below silently removed leading and trailing
|
|
whitespace from libraries linked with code like
|
|
|
|
::
|
|
|
|
target_link_libraries(myexe " A ")
|
|
|
|
This could lead to subtle errors in user projects.
|
|
|
|
The OLD behavior for this policy is to silently remove leading and
|
|
trailing whitespace. The NEW behavior for this policy is to diagnose
|
|
the existence of such whitespace as an error. The setting for this
|
|
policy used when checking the library names is that in effect when the
|
|
target is created by an add_executable or add_library command.
|
|
|
|
This policy was introduced in CMake version 2.6.0. CMake version
|
|
|release| warns when the policy is not set and uses OLD behavior. Use
|
|
the cmake_policy command to set it to OLD or NEW explicitly.
|
|
|
|
.. include:: DEPRECATED.txt
|