CMakePM: Fix build on Windows

Amends 3aa324ef1f.

Change-Id: Ieef98239ec4fa029da1541b15229a17beeb513f6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2021-07-22 07:30:51 +02:00
parent c8a6d94a39
commit bbf2dab8cb
2 changed files with 7 additions and 2 deletions

View File

@@ -472,6 +472,11 @@ bool CMakeConfigItem::operator==(const CMakeConfigItem &o) const
return o.key == key && o.value == value && o.isUnset == isUnset;
}
uint qHash(const CMakeConfigItem &it)
{
return ::qHash(it.key) ^ ::qHash(it.value) ^ ::qHash(it.isUnset);
}
#if WITH_TESTS
} // namespace CMakeProjectManager

View File

@@ -43,8 +43,6 @@ class Kit;
namespace CMakeProjectManager {
class CMakeConfig;
class CMAKE_EXPORT CMakeConfigItem
{
public:
@@ -80,6 +78,8 @@ public:
QStringList values;
};
uint qHash(const CMakeConfigItem &it); // needed for MSVC
class CMAKE_EXPORT CMakeConfig : public QList<CMakeConfigItem>
{
public: