Make it safe to call this method without creating duplicates.
This commit is contained in:
parent
edd5303949
commit
97a5faa858
|
@ -1378,9 +1378,13 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs,
|
|||
// Store the automatic include paths.
|
||||
if(includeBinaryDir)
|
||||
{
|
||||
if(emitted.find(
|
||||
this->Makefile->GetStartOutputDirectory()) == emitted.end())
|
||||
{
|
||||
dirs.push_back(this->Makefile->GetStartOutputDirectory());
|
||||
emitted.insert(this->Makefile->GetStartOutputDirectory());
|
||||
}
|
||||
}
|
||||
if(includeSourceDir)
|
||||
{
|
||||
if(emitted.find(this->Makefile->GetStartDirectory()) == emitted.end())
|
||||
|
|
Loading…
Reference in New Issue