CMP0004.rst 902 B

123456789101112131415161718192021222324252627
  1. CMP0004
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. Libraries linked may not have leading or trailing whitespace.
  6. CMake versions 2.4 and below silently removed leading and trailing
  7. whitespace from libraries linked with code like
  8. .. code-block:: cmake
  9. target_link_libraries(myexe " A ")
  10. This could lead to subtle errors in user projects.
  11. The ``OLD`` behavior for this policy is to silently remove leading and
  12. trailing whitespace. The ``NEW`` behavior for this policy is to diagnose
  13. the existence of such whitespace as an error. The setting for this
  14. policy used when checking the library names is that in effect when the
  15. target is created by an :command:`add_executable` or :command:`add_library`
  16. command.
  17. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 2.6.0
  18. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  19. .. include:: include/REMOVED_EPILOGUE.rst