summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-18 13:30:59 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-05-18 13:30:59 (GMT)
commit4f17baccadf5f1c74ac2bbcdf07b020d2f9df628 (patch)
tree390fb5a7994d5e3cc10c04ee5ddf05fc5d10370d /Source
parent570d689776761b67306fe8dc786eb36a2da4fef8 (diff)
parentedcccde7d65944b3744c4567bd1d452211829702 (diff)
downloadCMake-4f17baccadf5f1c74ac2bbcdf07b020d2f9df628.zip
CMake-4f17baccadf5f1c74ac2bbcdf07b020d2f9df628.tar.gz
CMake-4f17baccadf5f1c74ac2bbcdf07b020d2f9df628.tar.bz2
Merge topic 'file-glob-sort'
edcccde7 file: Sort GLOB results to make it deterministic (#14491)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFileCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 5363a99..4e72f36 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -823,6 +823,7 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
std::vector<std::string>::size_type cc;
std::vector<std::string>& files = g.GetFiles();
+ std::sort(files.begin(), files.end());
for (cc = 0; cc < files.size(); cc++) {
if (!first) {
output += ";";