diff options
Diffstat (limited to 'Source/MFCDialog/CMakeSetupDialog.cpp')
-rw-r--r-- | Source/MFCDialog/CMakeSetupDialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 4dec7f3..dd1bcc8 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -580,7 +580,9 @@ void CMakeSetupDialog::RunCMake(bool generateProjectFiles) m_CMakeInstance->SetStartOutputDirectory(m_WhereBuild); m_CMakeInstance->SetGlobalGenerator( m_CMakeInstance->CreateGlobalGenerator(m_GeneratorChoiceString)); - if(m_CMakeInstance->Configure(m_PathToExecutable) != 0) + m_CMakeInstance->SetCMakeCommand(m_PathToExecutable); + m_CMakeInstance->LoadCache(); + if(m_CMakeInstance->Configure() != 0) { cmSystemTools::Error( "Error in configuration process, project files may be invalid"); |