QtSupport: Warn about Qt kits without C++ compiler

Fixes: QTCREATORBUG-22177
Change-Id: I85fcfdf267f01f76956eb954eec663f1a1b6ae52
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Christian Kandeler
2019-04-10 15:20:16 +02:00
parent e3586d164b
commit 741dc7bfea

View File

@@ -403,6 +403,11 @@ QList<Task> BaseQtVersion::validateKit(const Kit *k)
result << Task(fuzzyMatch ? Task::Warning : Task::Error, message, FileName(), -1,
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM);
}
} else if (ToolChainKitAspect::toolChain(k, ProjectExplorer::Constants::C_LANGUAGE_ID)) {
const QString message = QCoreApplication::translate("BaseQtVersion",
"The kit has a Qt version, but no C++ compiler.");
result << Task(Task::Warning, message, FileName(), -1,
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM);
}
return result;
}