forked from qt-creator/qt-creator
CMakePM: Fix condition for filtering out non CMake parameters
Coverity-Id: 1515708 Change-Id: I97de84f4db79977d7833337be87ae4877c10136b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1087,7 +1087,7 @@ QStringList CMakeConfigurationKitAspect::toArgumentsList(const Kit *k)
|
||||
[](const CMakeConfigItem &i) {
|
||||
return i.toArgument(nullptr);
|
||||
});
|
||||
current = Utils::filtered(current, [](const QString &s) { return s != "-D" || s != "-U"; });
|
||||
current = Utils::filtered(current, [](const QString &s) { return s != "-D" && s != "-U"; });
|
||||
return current;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user