Skip to content
Snippets Groups Projects
Commit 50b27de4 authored by Junghyun Kim's avatar Junghyun Kim Committed by Brad King
Browse files

aux_source_directory: Sort results to make it deterministic


The change in commit v3.6.0-rc1~54^2 (file: Sort GLOB results to make it
deterministic, 2016-05-14) makes sense for `aux_source_directory` too.

Signed-off-by: default avatarJunghyun Kim <jh0822.kim@samsung.com>
parent 5d295068
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,8 @@ bool cmAuxSourceDirectoryCommand::InitialPass(
sourceListValue = def;
}
std::vector<std::string> files;
// Load all the files in the directory
cmsys::Directory dir;
if (dir.Load(tdir.c_str())) {
......@@ -55,14 +57,16 @@ bool cmAuxSourceDirectoryCommand::InitialPass(
// depends can be done
cmSourceFile* sf = this->Makefile->GetOrCreateSource(fullname);
sf->SetProperty("ABSTRACT", "0");
if (!sourceListValue.empty()) {
sourceListValue += ";";
}
sourceListValue += fullname;
files.push_back(fullname);
}
}
}
}
std::sort(files.begin(), files.end());
if (!sourceListValue.empty()) {
sourceListValue += ";";
}
sourceListValue += cmJoin(files, ";");
this->Makefile->AddDefinition(args[1], sourceListValue.c_str());
return true;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment