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