forked from qt-creator/qt-creator
Don't accumulate includePaths and frameworkPaths on each parsing
GenericProject was adding includePaths and frameworkPaths to ProjectInfo on each parsing instead of updating their values. Change-Id: Id60f553909e4a9829b9001e7dd54bbb7ed7623ce Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
committed by
Daniel Teske
parent
7f44b1e588
commit
3978875fec
@@ -261,6 +261,9 @@ void GenericProject::refresh(RefreshOptions options)
|
||||
CPlusPlus::CppModelManagerInterface::ProjectPart::Ptr part(
|
||||
new CPlusPlus::CppModelManagerInterface::ProjectPart);
|
||||
|
||||
pinfo.frameworkPaths.clear();
|
||||
pinfo.includePaths.clear();
|
||||
|
||||
if (m_toolChain) {
|
||||
part->defines = m_toolChain->predefinedMacros(QStringList());
|
||||
part->defines += '\n';
|
||||
|
Reference in New Issue
Block a user