allow the same subdir to be added twice
This commit is contained in:
parent
ce23446000
commit
2f927a538b
|
@ -569,9 +569,14 @@ void cmMakefile::AddLinkDirectory(const char* dir)
|
|||
}
|
||||
|
||||
void cmMakefile::AddSubDirectory(const char* sub)
|
||||
{
|
||||
// make sure it isn't already there
|
||||
if (std::find(m_SubDirectories.begin(),
|
||||
m_SubDirectories.end(), sub) == m_SubDirectories.end())
|
||||
{
|
||||
m_SubDirectories.push_back(sub);
|
||||
}
|
||||
}
|
||||
|
||||
void cmMakefile::AddIncludeDirectory(const char* inc, bool before)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue