forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8' into 4.9
Conflicts: qtcreator.pri Change-Id: I84dc8b9c7a029f2f40c4fa3ef78eef338247a6c0
This commit is contained in:
@@ -291,12 +291,27 @@ void MakefileParser::parseSubDirs()
|
||||
foreach (const QString& source, parser.sources())
|
||||
m_sources.append(subDir + slash + source);
|
||||
|
||||
// Duplicates might be possible in combination with several
|
||||
// "..._SUBDIRS" targets
|
||||
m_makefiles.removeDuplicates();
|
||||
m_sources.removeDuplicates();
|
||||
// Append the include paths of the sub directory
|
||||
m_includePaths.append(parser.includePaths());
|
||||
|
||||
// Append the flags of the sub directory
|
||||
m_cflags.append(parser.cflags());
|
||||
m_cxxflags.append(parser.cxxflags());
|
||||
|
||||
// Append the macros of the sub directory
|
||||
foreach (const auto& m, parser.macros())
|
||||
{
|
||||
if (!m_macros.contains(m))
|
||||
m_macros.append(m);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Duplicates might be possible in combination with several
|
||||
// "..._SUBDIRS" targets
|
||||
m_makefiles.removeDuplicates();
|
||||
m_sources.removeDuplicates();
|
||||
|
||||
if (subDirs.isEmpty())
|
||||
m_success = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user