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:
Daniele Bortolotti
2022-11-07 09:09:37 +01:00
parent 9eebcf3ef0
commit 11c9332574

View File

@@ -287,7 +287,7 @@ public:
false);
}
configMap.insert("QUL_PLATFORM", mcuTarget->platform().name.toUtf8());
configMap.insert("QUL_PLATFORM", mcuTarget->platform().name.toLower().toUtf8());
if (mcuTarget->colorDepth() != McuTarget::UnspecifiedColorDepth)
configMap.insert("QUL_COLOR_DEPTH", QString::number(mcuTarget->colorDepth()).toLatin1());