CMP0009.rst 896 B

12345678910111213141516171819202122
  1. CMP0009
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. FILE GLOB_RECURSE calls should not follow symlinks by default.
  6. In CMake 2.6.1 and below, :command:`file(GLOB_RECURSE)` calls would follow
  7. through symlinks, sometimes coming up with unexpectedly large result sets
  8. because of symlinks to top level directories that contain hundreds of
  9. thousands of files.
  10. This policy determines whether or not to follow symlinks encountered
  11. during a :command:`file(GLOB_RECURSE)` call. The ``OLD`` behavior for this
  12. policy is to follow the symlinks. The ``NEW`` behavior for this policy is not
  13. to follow the symlinks by default, but only if ``FOLLOW_SYMLINKS`` is given
  14. as an additional argument to the ``FILE`` command.
  15. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 2.6.2
  16. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  17. .. include:: include/REMOVED_EPILOGUE.rst