diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index 32e3c95f5..3f5a26018 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -257,7 +257,8 @@ void CMakeSetupDialog::OnOK() mf.SetHomeDirectory(m_WhereSource); // Set the output directory - mf.SetOutputDirectory(m_WhereBuild); + mf.SetOutputDirectory(m_WhereBuild); + mf.SetOutputHomeDirectory(m_WhereBuild); // set the directory which contains the CMakeLists.txt mf.SetCurrentDirectory(m_WhereSource); // Create the master DSW file and all children dsp files for ITK