mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 22:05:57 +00:00
cmMakefile: Optimize AddSystemIncludeDirectories for empty set
Do not bother looping over all targets if we have no system include directories to add anyway.
This commit is contained in:
parent
a896043bac
commit
4419909756
@ -1574,6 +1574,10 @@ void cmMakefile::AddIncludeDirectories(const std::vector<std::string>& incs,
|
||||
|
||||
void cmMakefile::AddSystemIncludeDirectories(const std::set<std::string>& incs)
|
||||
{
|
||||
if (incs.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this->SystemIncludeDirectories.insert(incs.begin(), incs.end());
|
||||
|
||||
for (cmTargets::iterator l = this->Targets.begin(); l != this->Targets.end();
|
||||
|
Loading…
Reference in New Issue
Block a user