CMP0004.rst 857 B

12345678910111213141516171819202122232425
  1. CMP0004
  2. -------
  3. Libraries linked may not have leading or trailing whitespace.
  4. CMake versions 2.4 and below silently removed leading and trailing
  5. whitespace from libraries linked with code like
  6. ::
  7. target_link_libraries(myexe " A ")
  8. This could lead to subtle errors in user projects.
  9. The OLD behavior for this policy is to silently remove leading and
  10. trailing whitespace. The NEW behavior for this policy is to diagnose
  11. the existence of such whitespace as an error. The setting for this
  12. policy used when checking the library names is that in effect when the
  13. target is created by an add_executable or add_library command.
  14. This policy was introduced in CMake version 2.6.0. CMake version
  15. |release| warns when the policy is not set and uses OLD behavior. Use
  16. the cmake_policy command to set it to OLD or NEW explicitly.
  17. .. include:: DEPRECATED.txt