diff options
author | Brad King <brad.king@kitware.com> | 2013-10-18 17:30:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-18 17:32:39 (GMT) |
commit | a8226e91d75e595248a176966f3f645203f12072 (patch) | |
tree | 23c08ad0e211046f545b665a89274189ca18fd6b /Source/cmakemain.cxx | |
parent | 919e1e845361d6e29789f5347d12af3318452843 (diff) | |
download | CMake-a8226e91d75e595248a176966f3f645203f12072.zip CMake-a8226e91d75e595248a176966f3f645203f12072.tar.gz CMake-a8226e91d75e595248a176966f3f645203f12072.tar.bz2 |
cmake: Drop support for "-i" wizard mode
Tell users to pass cache values with the -D option on the command line
or use cmake-gui or ccmake.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 5113a75..e86c2cf 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -20,7 +20,6 @@ #include "cmcmd.h" #include "cmCacheManager.h" #include "cmListFileCache.h" -#include "cmakewizard.h" #include "cmSourceFile.h" #include "cmGlobalGenerator.h" #include "cmLocalGenerator.h" @@ -61,7 +60,6 @@ static const char * cmDocumentationOptions[][2] = { CMAKE_STANDARD_OPTIONS_TABLE, {"-E", "CMake command mode."}, - {"-i", "Run in wizard mode."}, {"-L[A][H]", "List non-advanced cached variables."}, {"--build <dir>", "Build a CMake-generated project binary tree."}, {"-N", "View mode only."}, @@ -236,7 +234,6 @@ int do_cmake(int ac, char** av) } #endif - bool wiz = false; bool sysinfo = false; bool list_cached = false; bool list_all_cached = false; @@ -248,7 +245,11 @@ int do_cmake(int ac, char** av) { if(strcmp(av[i], "-i") == 0) { - wiz = true; + std::cerr << + "The \"cmake -i\" wizard mode is no longer supported.\n" + "Use the -D option to set cache values on the command line.\n" + "Use cmake-gui or ccmake for an interactive dialog.\n"; + return 1; } else if(strcmp(av[i], "--system-information") == 0) { @@ -301,11 +302,6 @@ int do_cmake(int ac, char** av) args.push_back(av[i]); } } - if (wiz) - { - cmakewizard wizard; - return wizard.RunWizard(args); - } if (sysinfo) { cmake cm; |