mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
cmGeneratorTarget: Remove unnecessary copy to local variable
This commit is contained in:
1 parent
fab72918c9
commit
c131e62f7b
1 file changed
+3
-4
@@ -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