mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
Make it safe to call this method without creating duplicates.
This commit is contained in:
parent
edd5303949
commit
97a5faa858
@ -1378,8 +1378,12 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs,
|
||||
// Store the automatic include paths.
|
||||
if(includeBinaryDir)
|
||||
{
|
||||
dirs.push_back(this->Makefile->GetStartOutputDirectory());
|
||||
emitted.insert(this->Makefile->GetStartOutputDirectory());
|
||||
if(emitted.find(
|
||||
this->Makefile->GetStartOutputDirectory()) == emitted.end())
|
||||
{
|
||||
dirs.push_back(this->Makefile->GetStartOutputDirectory());
|
||||
emitted.insert(this->Makefile->GetStartOutputDirectory());
|
||||
}
|
||||
}
|
||||
if(includeSourceDir)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user