QbsProjectManager: Consider cpp.distributionIncludePaths

... and pass them to the code model.

Fixes: QTCREATORBUG-24162
Change-Id: I4f33bba659fca957c56f2fcb4b8adce28533074b
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
This commit is contained in:
Christian Kandeler
2020-06-23 13:03:40 +02:00
parent db2f2f92b6
commit 7fad01eb02
2 changed files with 3 additions and 1 deletions

View File

@@ -902,7 +902,8 @@ static RawProjectParts generateProjectParts(
list.removeDuplicates();
for (const QString &p : qAsConst(list))
grpHeaderPaths += {FilePath::fromUserInput(p).toString(), HeaderPathType::User};
list = arrayToStringList(props.value("cpp.systemIncludePaths"));
list = arrayToStringList(props.value("cpp.distributionIncludePaths"))
+ arrayToStringList(props.value("cpp.systemIncludePaths"));
list.removeDuplicates();
for (const QString &p : qAsConst(list))
grpHeaderPaths += {FilePath::fromUserInput(p).toString(), HeaderPathType::System};

View File

@@ -381,6 +381,7 @@ void QbsSession::insertRequestedModuleProperties(QJsonObject &request)
"cpp.cxxLanguageVersion",
"cpp.cxxStandardLibrary",
"cpp.defines",
"cpp.distributionIncludePaths",
"cpp.driverFlags",
"cpp.enableExceptions",
"cpp.enableRtti",