Commit 97a5faa8 authored by Stephen Kelly's avatar Stephen Kelly Committed by David Cole
Browse files

Make it safe to call this method without creating duplicates.

parent edd53039
...@@ -1378,9 +1378,13 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs, ...@@ -1378,9 +1378,13 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs,
// Store the automatic include paths. // Store the automatic include paths.
if(includeBinaryDir) if(includeBinaryDir)
{ {
if(emitted.find(
this->Makefile->GetStartOutputDirectory()) == emitted.end())
{
dirs.push_back(this->Makefile->GetStartOutputDirectory()); dirs.push_back(this->Makefile->GetStartOutputDirectory());
emitted.insert(this->Makefile->GetStartOutputDirectory()); emitted.insert(this->Makefile->GetStartOutputDirectory());
} }
}
if(includeSourceDir) if(includeSourceDir)
{ {
if(emitted.find(this->Makefile->GetStartDirectory()) == emitted.end()) if(emitted.find(this->Makefile->GetStartDirectory()) == emitted.end())
......
Markdown is supported
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