Commit c131e62f authored by Brad King's avatar Brad King

cmGeneratorTarget: Remove unnecessary copy to local variable

parent fab72918
......@@ -2856,12 +2856,11 @@ static void processIncludeDirectories(
if (!cmSystemTools::IsOff(entryInclude)) {
cmSystemTools::ConvertToUnixSlashes(entryInclude);
}
std::string inc = entryInclude;
if (uniqueIncludes.insert(inc).second) {
includes.emplace_back(inc, entry->GetBacktrace());
if (uniqueIncludes.insert(entryInclude).second) {
includes.emplace_back(entryInclude, entry->GetBacktrace());
if (debugIncludes) {
usedIncludes += " * " + inc + "\n";
usedIncludes += " * " + entryInclude + "\n";
}
}
}
......
Markdown is supported
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