forked from qt-creator/qt-creator
CMakePM: Fix MSVC assertion with tests/manual/cmakepresets
Change-Id: I5f06d69b444e453456f2dd9822006b535d3f7843 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -115,7 +115,16 @@ Internal::PresetsData CMakeProject::combinePresets(Internal::PresetsData &cmakeP
|
|||||||
&& left.inherits.value() == right.inherits.value();
|
&& left.inherits.value() == right.inherits.value();
|
||||||
const bool leftInheritsRight = left.inherits
|
const bool leftInheritsRight = left.inherits
|
||||||
&& left.inherits.value().contains(right.name);
|
&& left.inherits.value().contains(right.name);
|
||||||
if ((left.inherits && !right.inherits) || leftInheritsRight || sameInheritance)
|
|
||||||
|
const bool inheritsGreater = left.inherits && right.inherits
|
||||||
|
&& left.inherits.value().first()
|
||||||
|
> right.inherits.value().first();
|
||||||
|
|
||||||
|
const bool noInheritsGreater = !left.inherits && !right.inherits
|
||||||
|
&& left.name > right.name;
|
||||||
|
|
||||||
|
if ((left.inherits && !right.inherits) || leftInheritsRight || sameInheritance
|
||||||
|
|| inheritsGreater || noInheritsGreater)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user