summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-08-06 17:48:51 (GMT)
committerBrad King <brad.king@kitware.com>2003-08-06 17:48:51 (GMT)
commitf86ffd72cae4d516e726586ee0a7f68f73f91bac (patch)
tree9cd825359b36c3529389fb4d43740c44c7b4cfce /Source
parent999810bc52f14db67cc7c51ef770c2d081b01cbd (diff)
downloadCMake-f86ffd72cae4d516e726586ee0a7f68f73f91bac.zip
CMake-f86ffd72cae4d516e726586ee0a7f68f73f91bac.tar.gz
CMake-f86ffd72cae4d516e726586ee0a7f68f73f91bac.tar.bz2
BUG: If a directory is specified on the command line that is not an existing build tree, we should still use any -G option that was given to set the generator.
Diffstat (limited to 'Source')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index 524f2e4..77fb76e 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -181,7 +181,7 @@ CMakeSetupDialog::CMakeSetupDialog(const CMakeCommandLineInfo& cmdInfo,
this->m_WhereSource = _T("");
this->m_WhereBuild = _T("");
this->m_AdvancedValues = FALSE;
- this->m_GeneratorChoiceString = _T("");
+ this->m_GeneratorChoiceString = cmdInfo.m_GeneratorChoiceString;
this->ChangeDirectoriesFromFile((LPCTSTR)cmdInfo.m_LastUnknownParameter);
}
@@ -1422,6 +1422,8 @@ void CMakeSetupDialog::ChangeDirectoriesFromFile(const char* arg)
path = ConvertToWindowsPath(it.GetValue());
m_WhereSource = path.c_str();
+
+ m_GeneratorChoiceString = _T("");
return;
}
}