Commit 3a95f5cb authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qbs: Fix defines passed on to the code model



Change-Id: Ibd3cd39578cd08b48c38b888677f04c3e17d24f8
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 3df67569
......@@ -470,8 +470,13 @@ void QbsProject::updateCppCodeModel(const qbs::ProjectData *prj)
QStringList list = props.getModulePropertiesAsStringList(
QLatin1String(CONFIG_CPP_MODULE),
QLatin1String(CONFIG_DEFINES));
foreach (const QString &def, list)
grpDefines += (QByteArray("#define ") + def.toUtf8() + '\n');
foreach (const QString &def, list) {
QByteArray data = def.toUtf8();
int pos = data.indexOf('=');
if (pos >= 0)
data[pos] = ' ';
grpDefines += (QByteArray("#define ") + data + '\n');
}
list = props.getModulePropertiesAsStringList(QLatin1String(CONFIG_CPP_MODULE),
QLatin1String(CONFIG_INCLUDEPATHS));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment