diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-08-21 21:41:12 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-08-21 21:41:12 (GMT) |
commit | 9b259810684b1dc791b71ca45014340e48c8e343 (patch) | |
tree | dc4602455a1d64b8ef53d154151bebe7a96a499a /Source/MFCDialog/CMakeSetup.cpp | |
parent | a159c2d306368bddae574a83464cff5e00230369 (diff) | |
download | CMake-9b259810684b1dc791b71ca45014340e48c8e343.zip CMake-9b259810684b1dc791b71ca45014340e48c8e343.tar.gz CMake-9b259810684b1dc791b71ca45014340e48c8e343.tar.bz2 |
CMakeSetup now handles command-line arguments (ex: /H=source_dir /B=build_dir)
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) |