summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-12-21 23:25:03 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-12-21 23:25:03 (GMT)
commit3d24bc75bd88174d00afd17629ab6f5d6849f3ac (patch)
tree596294824b9496790f98042520a076360fee34c3 /Source/MFCDialog
parent183bd9f9b3955281c8ba10847238504b4d42a60f (diff)
downloadCMake-3d24bc75bd88174d00afd17629ab6f5d6849f3ac.zip
CMake-3d24bc75bd88174d00afd17629ab6f5d6849f3ac.tar.gz
CMake-3d24bc75bd88174d00afd17629ab6f5d6849f3ac.tar.bz2
Fix: the generator choice value was hardcoded and overrode the value passed as a command-line param (desktop shortcuts)
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index 6a294f0..4b2fbe9 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -206,7 +206,10 @@ BOOL CMakeSetupDialog::OnInitDialog()
{
m_GeneratorChoice.AddString(i->c_str());
}
- m_GeneratorChoiceString = "Visual Studio 6";
+ if (m_GeneratorChoiceString == _T(""))
+ {
+ m_GeneratorChoiceString = "Visual Studio 6";
+ }
// try to load the cmake cache from disk
this->LoadCacheFromDiskToGUI();