cmGeneratorTarget: Remove unnecessary copy to local variable

This commit is contained in:
Brad King committed 2019-07-19 09:58:12 -04:00
1 parent fab72918c9
commit c131e62f7b
1 file changed
+3 -4
+3 -4
View File
@@ -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";
}
}
}