diff options
author | Jorgen Bodde <jorgb@xs4all.nl> | 2005-08-09 19:42:49 (GMT) |
---|---|---|
committer | Jorgen Bodde <jorgb@xs4all.nl> | 2005-08-09 19:42:49 (GMT) |
commit | 8a52a910e1ac45d16011e755ed7e5ca294c84372 (patch) | |
tree | 12cea2339808f7a223cb7ebfc341a1e970cb15ed /Source/WXDialog/CMakeSetup.cpp | |
parent | 7df63f38c5318c55276ba0f8f3bb606f2139a0aa (diff) | |
download | CMake-8a52a910e1ac45d16011e755ed7e5ca294c84372.zip CMake-8a52a910e1ac45d16011e755ed7e5ca294c84372.tar.gz CMake-8a52a910e1ac45d16011e755ed7e5ca294c84372.tar.bz2 |
Implemented -G option
Diffstat (limited to 'Source/WXDialog/CMakeSetup.cpp')
-rw-r--r-- | Source/WXDialog/CMakeSetup.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/WXDialog/CMakeSetup.cpp b/Source/WXDialog/CMakeSetup.cpp index 2e1dedd..32bb3e1 100644 --- a/Source/WXDialog/CMakeSetup.cpp +++ b/Source/WXDialog/CMakeSetup.cpp @@ -91,8 +91,11 @@ bool CMakeSetupApp::OnInit() // parse command line params cmCommandLineInfo cm; - cm.SetValidArguments("ABGHQG"); - cm.ParseCommandLine(wxApp::argc, wxApp::argv); + if(!cm.ParseCommandLine(wxApp::argc, wxApp::argv)) + { + printf("Error while parsing the command line\n"); + return false; + } // set vendor name and app for config SetVendorName("Kitware"); |