forked from qt-creator/qt-creator
CMakePM: Do not sort kit CMake parameters
As a user when I add CMake parameters in the Kit's CMake section I expect the order of parameters not to change. If I add something at the end, I expect to find the value at the end. Change-Id: I4f0e2d9b845dddb7c9d6b012945ab61b0135267c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1006,7 +1006,6 @@ QStringList CMakeConfigurationKitAspect::toStringList(const Kit *k)
|
||||
QStringList current = Utils::transform(CMakeConfigurationKitAspect::configuration(k).toList(),
|
||||
[](const CMakeConfigItem &i) { return i.toString(); });
|
||||
current = Utils::filtered(current, [](const QString &s) { return !s.isEmpty(); });
|
||||
Utils::sort(current);
|
||||
return current;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user