summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio9Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-26 12:16:19 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-26 12:16:19 (GMT)
commit0c58d2d0fdc518e12e6aa5a15012437c573a910c (patch)
treeda66cd5aef685febba20624af4a614f9a78a9008 /Source/cmGlobalVisualStudio9Generator.cxx
parent657a446175c1b61999a77958c5b7480f8be041a5 (diff)
downloadCMake-0c58d2d0fdc518e12e6aa5a15012437c573a910c.zip
CMake-0c58d2d0fdc518e12e6aa5a15012437c573a910c.tar.gz
CMake-0c58d2d0fdc518e12e6aa5a15012437c573a910c.tar.bz2
VS: Detect VS 8 and 9 Express editions
Diffstat (limited to 'Source/cmGlobalVisualStudio9Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio9Generator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio9Generator.cxx b/Source/cmGlobalVisualStudio9Generator.cxx
index 884f754..da6ffae 100644
--- a/Source/cmGlobalVisualStudio9Generator.cxx
+++ b/Source/cmGlobalVisualStudio9Generator.cxx
@@ -104,6 +104,10 @@ cmGlobalVisualStudio9Generator::cmGlobalVisualStudio9Generator(cmake* cm,
: cmGlobalVisualStudio8Generator(cm, name, platformName)
{
this->Version = VS9;
+ std::string vc9Express;
+ this->ExpressEdition = cmSystemTools::ReadRegistryValue(
+ "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\9.0\\Setup\\VC;"
+ "ProductDir", vc9Express, cmSystemTools::KeyWOW64_32);
}
//----------------------------------------------------------------------------