Browse Source

Generators: adjust error message for the removed KDevelop3 generator

If the user request a KDevelop3 project, tell the user that
KDevelop3 is not supported anymore, so he sees it's not just
a typo.

Alex
Alex Neundorf 7 years ago
parent
commit
551bd0b3e8
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Source/cmake.cxx

+ 6 - 1
Source/cmake.cxx

@@ -744,8 +744,13 @@ void cmake::SetArgs(const std::vector<std::string>& args,
       }
       cmGlobalGenerator* gen = this->CreateGlobalGenerator(value);
       if (!gen) {
+        const char* kdevError = nullptr;
+        if (value.find("KDevelop3", 0) != std::string::npos) {
+          kdevError = "\nThe KDevelop3 generator is not supported anymore.";
+        }
+
         cmSystemTools::Error("Could not create named generator ",
-                             value.c_str());
+                             value.c_str(), kdevError);
         this->PrintGeneratorList();
       } else {
         this->SetGlobalGenerator(gen);