From 551bd0b3e8ccd8c5cd8fff15a940797b8677a310 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Tue, 23 Jan 2018 23:34:33 +0100 Subject: 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 --- Source/cmake.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 4d501df..cefea27 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -744,8 +744,13 @@ void cmake::SetArgs(const std::vector& 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); -- cgit v0.12