mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmGeneratorTarget: Remove unnecessary copy to local variable
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user