SDKtool: Do not add empty CMake configuration values

Do not add the empty string as CMake configuration. People are
apparently trying to use the empty string to make sure nothing
is set up.

Task-number: QTCREATORBUG-21696
Change-Id: I702e26bc135e30c36f770210f885a4680d4b0359
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2020-07-03 13:24:42 +02:00
parent b702d97872
commit 1183810506

View File

@@ -260,7 +260,8 @@ bool AddKitOperation::setArguments(const QStringList &args)
if (next.isNull()) if (next.isNull())
return false; return false;
++i; ++i;
m_cmakeConfiguration.append(next); if (!next.isEmpty())
m_cmakeConfiguration.append(next);
continue; continue;
} }