CMake: Fix generator warning for server-mode cmake tools

Do not warn on wrong extra generators if cmake supports server-mode.

Make the massage point out the missing server-mode while at it.

Change-Id: I643c77fbebe4ba9a7ea6fee28422283118d145dd
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2016-11-15 17:32:03 +01:00
parent eff0768100
commit c49a0dd502

View File

@@ -366,9 +366,10 @@ QList<Task> CMakeGeneratorKitInformation::validate(const Kit *k) const
Utils::FileName(), -1, Core::Id(Constants::TASK_CATEGORY_BUILDSYSTEM));
}
}
if (info.extraGenerator != "CodeBlocks") {
result << Task(Task::Warning, tr("CMake generator does not generate a CodeBlocks file. "
"Qt Creator will not be able to parse the CMake project."),
if (!tool->hasServerMode() && info.extraGenerator != "CodeBlocks") {
result << Task(Task::Warning, tr("The selected CMake binary has no server-mode and the CMake "
"generator does not generate a CodeBlocks file. "
"Qt Creator will not be able to parse CMake projects."),
Utils::FileName(), -1, Core::Id(Constants::TASK_CATEGORY_BUILDSYSTEM));
}
}