CMP0205.rst 947 B

1234567891011121314151617181920212223
  1. CMP0205
  2. -------
  3. .. versionadded:: 4.3
  4. :command:`file(CREATE_LINK)` with ``COPY_ON_ERROR`` copies directory content.
  5. The :command:`file(CREATE_LINK)` command's ``COPY_ON_ERROR`` option copies
  6. the source file to the destination as a fallback if linking it fails.
  7. If the source is a directory, CMake 4.2 and below create the destination
  8. directory but do not copy its contents. CMake 4.3 and above prefer to
  9. copy the directory contents too. This policy provides compatibility with
  10. projects that have not been updated to expect the contents to be copied.
  11. The ``OLD`` behavior for this policy is to create the destination directory
  12. without copying contents. The ``NEW`` behavior for this policy to create
  13. the destination directory and copy contents from the source directory.
  14. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 4.3
  15. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  16. .. include:: include/STANDARD_ADVICE.rst
  17. .. include:: include/DEPRECATED.rst