summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-04 13:16:03 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-04 13:16:06 (GMT)
commit70c326f0f1c0ecabc2f8079e2fe3e8205347682b (patch)
tree96a0a88dbbcb4e586a77bb385d0efeeefa7e0f5a /Help
parent86a107cb5cfee1314bbb8caccfec894f12f6328a (diff)
parent75ca5f04df433cc5e34976ecae446c150ebfc214 (diff)
downloadCMake-70c326f0f1c0ecabc2f8079e2fe3e8205347682b.zip
CMake-70c326f0f1c0ecabc2f8079e2fe3e8205347682b.tar.gz
CMake-70c326f0f1c0ecabc2f8079e2fe3e8205347682b.tar.bz2
Merge topic 'doc-file-GLOB-sorted'
75ca5f04 Help: Document that file(GLOB) result is sorted Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1098
Diffstat (limited to 'Help')
-rw-r--r--Help/command/file.rst4
1 files changed, 1 insertions, 3 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst
index 97466ff..9cdce80 100644
--- a/Help/command/file.rst
+++ b/Help/command/file.rst
@@ -105,9 +105,7 @@ Generate a list of files that match the ``<globbing-expressions>`` and
store it into the ``<variable>``. Globbing expressions are similar to
regular expressions, but much simpler. If ``RELATIVE`` flag is
specified, the results will be returned as relative paths to the given
-path. No specific order of results is defined other than that it is
-deterministic. If order is important then sort the list explicitly
-(e.g. using the :command:`list(SORT)` command).
+path. The results will be ordered lexicographically.
By default ``GLOB`` lists directories - directories are omited in result if
``LIST_DIRECTORIES`` is set to false.