CMake: Demote non-matching generator to 'Warning'

Default KitChooser behavior is to suppress kits with errors everywhere
but non-matching CMake generator settings are irrelevant for both non-CMake
using projects and analyzer/debugger tools.

Change-Id: Ie60f0f23b5c2423128304227fc573526b7ec2113
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2016-06-03 08:39:47 +02:00
parent c64f85cd5a
commit 04a93c3bb5

View File

@@ -224,7 +224,7 @@ QList<Task> CMakeGeneratorKitInformation::validate(const Kit *k) const
} else {
QStringList known = tool->supportedGenerators();
if (!known.contains(generator)) {
result << Task(Task::Error, tr("CMake Tool does not support the configured generator."),
result << Task(Task::Warning, tr("CMake Tool does not support the configured generator."),
Utils::FileName(), -1, Core::Id(Constants::TASK_CATEGORY_BUILDSYSTEM));
}
if (!generator.startsWith(QLatin1String("CodeBlocks -"))) {