forked from qt-creator/qt-creator
McuSupport: Use lower case platform name for CMake configurations
QUL_PLATFORM name is converted in CMake to lower case, resulting in misleading warnings about platform name due to case mismatch. Fixes: UL-6641 Change-Id: I25df689c91dca65ef67c80d9527c0afe7952278b Reviewed-by: Yasser Grimes <yasser.grimes@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -287,7 +287,7 @@ public:
|
|||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
configMap.insert("QUL_PLATFORM", mcuTarget->platform().name.toUtf8());
|
configMap.insert("QUL_PLATFORM", mcuTarget->platform().name.toLower().toUtf8());
|
||||||
|
|
||||||
if (mcuTarget->colorDepth() != McuTarget::UnspecifiedColorDepth)
|
if (mcuTarget->colorDepth() != McuTarget::UnspecifiedColorDepth)
|
||||||
configMap.insert("QUL_COLOR_DEPTH", QString::number(mcuTarget->colorDepth()).toLatin1());
|
configMap.insert("QUL_COLOR_DEPTH", QString::number(mcuTarget->colorDepth()).toLatin1());
|
||||||
|
|||||||
Reference in New Issue
Block a user