Commit 44199097 authored by Brad King's avatar Brad King
Browse files

cmMakefile: Optimize AddSystemIncludeDirectories for empty set

Do not bother looping over all targets if we have no system include
directories to add anyway.
parent a896043b
......@@ -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()) {
this->SystemIncludeDirectories.insert(incs.begin(), incs.end());
for (cmTargets::iterator l = this->Targets.begin(); l != this->Targets.end();
Supports Markdown
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