Commit 52052ef8 authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

cmGeneratorTarget: use erase-unique instead of reinitialization

Just to make it easier to find places where containers are cleared in
order to be recomputed.
parent 3b362230
......@@ -839,14 +839,10 @@ bool cmGeneratorTarget::IsSystemIncludeDirectory(
&dagChecker, result, excludeImported);
std::set<std::string> unique;
for (std::vector<std::string>::iterator li = result.begin();
li != result.end(); ++li) {
result.insert(result.end(), unique.begin(), unique.end());
std::for_each(result.begin(), result.end(),
std::sort(result.begin(), result.end());
result.erase(std::unique(result.begin(), result.end()), result.end());
IncludeCacheType::value_type entry(config_upper, result);
iter = this->SystemIncludesCache.insert(entry).first;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment