summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/CMakeSetupDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.cpp')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index f3dc17b..38ddb71 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -5,7 +5,7 @@
#include "CMakeSetup.h"
#include "CMakeSetupDialog.h"
#include "../cmDSWMakefile.h"
-#include "../itkVC60Configure.h"
+#include "../cmWindowsConfigure.h"
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -227,10 +227,21 @@ void CMakeSetupDialog::OnOK()
this->UpdateData();
// configure the system for VC60
- itkVC60Configure config;
+ cmWindowsConfigure config;
config.SetWhereSource(m_WhereSource);
config.SetWhereBuild(m_WhereBuild);
- config.Configure();
+ std::string configSrc;
+ configSrc = m_WhereSource;
+ configSrc += "/CMakeSetupConfig.MSC";
+ if(!config.Configure(configSrc.c_str()))
+ {
+ std::string error = "Error: in configuring system from: ";
+ error += configSrc;
+ error += "\nProject NOT created!";
+ ::MessageBox(0, error.c_str(), "config ERROR", MB_OK);
+ return;
+ }
+
cmDSWMakefile builder;
// Set the ITK home directory