forked from qt-creator/qt-creator
CMakeProjectManager: Only supports desktop kits
Task-number: QTCREATORBUG-9340 Change-Id: I1e209cc96bf415fe065520caa51f90d4f5ecf134 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -178,6 +178,9 @@ QList<GeneratorInfo> GeneratorInfo::generatorInfosFor(ProjectExplorer::Kit *k, N
|
|||||||
ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainKitInformation::toolChain(k);
|
ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainKitInformation::toolChain(k);
|
||||||
if (!tc)
|
if (!tc)
|
||||||
return results;
|
return results;
|
||||||
|
Core::Id deviceType = ProjectExplorer::DeviceTypeKitInformation::deviceTypeId(k);
|
||||||
|
if (deviceType != ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE)
|
||||||
|
return results;
|
||||||
ProjectExplorer::Abi targetAbi = tc->targetAbi();
|
ProjectExplorer::Abi targetAbi = tc->targetAbi();
|
||||||
if (n != ForceNinja) {
|
if (n != ForceNinja) {
|
||||||
if (targetAbi.os() == ProjectExplorer::Abi::WindowsOS) {
|
if (targetAbi.os() == ProjectExplorer::Abi::WindowsOS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user