CMP0009.rst 923 B

123456789101112131415161718192021
  1. CMP0009
  2. -------
  3. FILE GLOB_RECURSE calls should not follow symlinks by default.
  4. In CMake 2.6.1 and below, :command:`file(GLOB_RECURSE)` calls would follow
  5. through symlinks, sometimes coming up with unexpectedly large result sets
  6. because of symlinks to top level directories that contain hundreds of
  7. thousands of files.
  8. This policy determines whether or not to follow symlinks encountered
  9. during a :command:`file(GLOB_RECURSE)` call. The ``OLD`` behavior for this
  10. policy is to follow the symlinks. The ``NEW`` behavior for this policy is not
  11. to follow the symlinks by default, but only if ``FOLLOW_SYMLINKS`` is given
  12. as an additional argument to the ``FILE`` command.
  13. This policy was introduced in CMake version 2.6.2. CMake version
  14. |release| warns when the policy is not set and uses ``OLD`` behavior. Use
  15. the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  16. .. include:: DEPRECATED.txt