diff options
author | Brad King <brad.king@kitware.com> | 2015-10-21 13:16:47 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-10-21 13:16:47 (GMT) |
commit | f1de724f41a516574f22d2b0e61ebf4b6d65c601 (patch) | |
tree | 3b3f8b5621e8cc6ff52d3dbf4c91b1d611fa9ce5 /Help/command | |
parent | 893a7fc2ed71760e1c76c4639985d0e1aec87d04 (diff) | |
parent | 5a208f834ea6d786611a5dc34dd7ed1d781dd1bc (diff) | |
download | CMake-f1de724f41a516574f22d2b0e61ebf4b6d65c601.zip CMake-f1de724f41a516574f22d2b0e61ebf4b6d65c601.tar.gz CMake-f1de724f41a516574f22d2b0e61ebf4b6d65c601.tar.bz2 |
Merge topic 'doc-file-GLOB-no-order'
5a208f83 Help: Document that file(GLOB*) order is undefined
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/file.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/command/file.rst b/Help/command/file.rst index bbddd40..96ac6c7 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -103,7 +103,8 @@ 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. +path. No specific order of results is defined. If order is important then +sort the list explicitly (e.g. using the :command:`list(SORT)` command). By default ``GLOB`` lists directories - directories are omited in result if ``LIST_DIRECTORIES`` is set to false. |