diff options
Diffstat (limited to 'Source/MFCDialog/CMakeSetup.cpp')
-rw-r--r-- | Source/MFCDialog/CMakeSetup.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetup.cpp b/Source/MFCDialog/CMakeSetup.cpp index 22aa238..c97ca0f 100644 --- a/Source/MFCDialog/CMakeSetup.cpp +++ b/Source/MFCDialog/CMakeSetup.cpp @@ -4,6 +4,7 @@ #include "stdafx.h" #include "CMakeSetup.h" #include "CMakeSetupDialog.h" +#include "CMakeCommandLineInfo.h" #ifdef _DEBUG #define new DEBUG_NEW @@ -54,7 +55,11 @@ BOOL CMakeSetup::InitInstance() Enable3dControlsStatic(); // Call this when linking to MFC statically #endif - CMakeSetupDialog dlg; + CMakeCommandLineInfo cmdInfo; + ParseCommandLine(cmdInfo); + + CMakeSetupDialog dlg(cmdInfo); + m_pMainWnd = &dlg; int nResponse = dlg.DoModal(); if (nResponse == IDOK) |