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