diff options
author | Alex Neundorf <neundorf@kde.org> | 2018-01-23 22:34:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-24 13:30:02 (GMT) |
commit | 551bd0b3e8ccd8c5cd8fff15a940797b8677a310 (patch) | |
tree | 84c9b73285303c6450707405a61d0a927e95ced3 /Source | |
parent | 9198e6a27b02a39ae5b7a96839e54da6588c3a3f (diff) | |
download | CMake-551bd0b3e8ccd8c5cd8fff15a940797b8677a310.zip CMake-551bd0b3e8ccd8c5cd8fff15a940797b8677a310.tar.gz CMake-551bd0b3e8ccd8c5cd8fff15a940797b8677a310.tar.bz2 |
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmake.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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<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); |