diff options
author | David Cole <david.cole@kitware.com> | 2008-09-11 14:34:04 -0400 |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2008-09-11 14:34:04 -0400 |
commit | bd1935dcd12d23a23878dc727545743fb078c7cb (patch) | |
tree | f25e552c73dc9ea3c31ff186829f5bdd905c1324 /Source/cmFileCommand.h | |
parent | 0e5319f21dc6a6079a8af82e40ca3e9da563b6de (diff) | |
download | cmake-bd1935dcd12d23a23878dc727545743fb078c7cb.tar.gz |
ENH: Improve FILE GLOB_RECURSE handling of symlinks with a new CMake policy. CMP0009 establishes NEW default behavior of not recursing through symlinks. OLD default behavior or explicit FOLLOW_SYMLINKS argument to FILE GLOB_RECURSE will still recurse through symlinks.
Diffstat (limited to 'Source/cmFileCommand.h')
-rw-r--r-- | Source/cmFileCommand.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h index 9343a63acf..1b0c2ff72f 100644 --- a/Source/cmFileCommand.h +++ b/Source/cmFileCommand.h @@ -77,7 +77,7 @@ public: " [NO_HEX_CONVERSION])\n" " file(GLOB variable [RELATIVE path] [globbing expressions]...)\n" " file(GLOB_RECURSE variable [RELATIVE path] \n" - " [RECURSE_SYMLINKS_OFF] [globbing expressions]...)\n" + " [FOLLOW_SYMLINKS] [globbing expressions]...)\n" " file(REMOVE [file1 ...])\n" " file(REMOVE_RECURSE [file1 ...])\n" " file(MAKE_DIRECTORY [directory1 directory2 ...])\n" @@ -124,11 +124,11 @@ public: " *.cxx - match all files with extension cxx\n" " *.vt? - match all files with extension vta,...,vtz\n" " f[3-5].txt - match files f3.txt, f4.txt, f5.txt\n" - "GLOB_RECURSE will generate similar list as the regular GLOB, except " + "GLOB_RECURSE will generate a list similar to the regular GLOB, except " "it will traverse all the subdirectories of the matched directory and " - "match the files. Subdirectories that are symlinks are traversed by " - "default to match the behavior of older CMake releases. Use " - "RECURSE_SYMLINKS_OFF to prevent recursion through symlinks.\n" + "match the files. Subdirectories that are symlinks are only traversed " + "if FOLLOW_SYMLINKS is given or cmake policy CMP0009 is not set to NEW. " + "See cmake --help-policy CMP0009 for more information.\n" "Examples of recursive globbing include:\n" " /dir/*.py - match all python files in /dir and subdirectories\n" "MAKE_DIRECTORY will create the given directories, also if their parent " |