From 6790238d91849c97ca521712eddcc6886eacc786 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 25 Jul 2019 13:03:10 +0200 Subject: [PATCH] CMake: Do not warn when fileapi-enabled cmakes have no Codeblocks Do not warn when fileapi-enabled cmake tools do not have the Codeblocks extra-generator set in the Kit. This is only necessary for the tealeaf-reader. Change-Id: Id3aa9df2ec5aa8c2de8b0a5bef8c751e54d72b42 Reviewed-by: Eike Ziller --- src/plugins/cmakeprojectmanager/cmakekitinformation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp index 5ed53c265db..9bee2f4fb72 100644 --- a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp +++ b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp @@ -678,7 +678,8 @@ Tasks CMakeGeneratorKitAspect::validate(const Kit *k) const Utils::FilePath(), -1, Core::Id(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM)); } } - if (!tool->hasServerMode() && info.extraGenerator != "CodeBlocks") { + if ((!tool->hasServerMode() && !tool->hasFileApi()) + && 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. " "%1 will not be able to parse CMake projects.")