summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-07-05 16:16:33 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-07-05 16:16:33 (GMT)
commit86195caf6ad23d6528748ad3879394b8709513c5 (patch)
tree2c48ed3825c1ad64ce0805d43a7cf2fb5e4b81e0 /Source/MFCDialog
parentbbc9e4a9dcbe293a5054cf8296fa4fce7e9cea35 (diff)
downloadCMake-86195caf6ad23d6528748ad3879394b8709513c5.zip
CMake-86195caf6ad23d6528748ad3879394b8709513c5.tar.gz
CMake-86195caf6ad23d6528748ad3879394b8709513c5.tar.bz2
ENH: add support for VCExpress 2005
Diffstat (limited to 'Source/MFCDialog')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index e3c00e8..c8b8612 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -322,26 +322,36 @@ BOOL CMakeSetupDialog::OnInitDialog()
{
// check for vs7 in registry then decide what default to use
std::string mp;
- mp = "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.1;InstallDir]";
+ mp = "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup;Dbghelp_path";
cmSystemTools::ExpandRegistryValues(mp);
- if (mp != "/registry")
+ if(mp != "/registry")
{
- m_GeneratorChoiceString = "Visual Studio 7 .NET 2003";
+ m_GeneratorChoiceString = "Visual Studio 8 2005";
}
else
{
- mp = "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.0;InstallDir]";
+ mp = "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.1;InstallDir]";
cmSystemTools::ExpandRegistryValues(mp);
if (mp != "/registry")
{
- m_GeneratorChoiceString = "Visual Studio 7";
+ m_GeneratorChoiceString = "Visual Studio 7 .NET 2003";
}
else
{
- m_GeneratorChoiceString = "Visual Studio 6";
+ mp = "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.0;InstallDir]";
+ cmSystemTools::ExpandRegistryValues(mp);
+ if (mp != "/registry")
+ {
+ m_GeneratorChoiceString = "Visual Studio 7";
+ }
+ else
+ {
+ m_GeneratorChoiceString = "Visual Studio 6";
+ }
}
}
}
+
// try to load the cmake cache from disk
this->LoadCacheFromDiskToGUI();