forked from qt-creator/qt-creator
CMakePM: Fix build on Windows
Amends 3aa324ef1f
.
Change-Id: Ieef98239ec4fa029da1541b15229a17beeb513f6
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user