summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-16 15:44:08 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-16 15:44:08 (GMT)
commit09e398fa9f6e2a858780c78e3096a56e96a3dcb7 (patch)
tree39bc29839c768ee5253adf222d10ad6a475577d2 /Source/cmGlobalVisualStudioGenerator.cxx
parent33207a9a87d53b7cb97e0b30bc36dccad3c50289 (diff)
downloadCMake-09e398fa9f6e2a858780c78e3096a56e96a3dcb7.zip
CMake-09e398fa9f6e2a858780c78e3096a56e96a3dcb7.tar.gz
CMake-09e398fa9f6e2a858780c78e3096a56e96a3dcb7.tar.bz2
Create VS generator GetRegistryBase method
This method returns the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<version> A protected GetIDEVersion method retrieves the version-specific part of the key name.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 43e3a81..6e91552 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -32,6 +32,14 @@ cmGlobalVisualStudioGenerator::~cmGlobalVisualStudioGenerator()
}
//----------------------------------------------------------------------------
+std::string cmGlobalVisualStudioGenerator::GetRegistryBase()
+{
+ std::string key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\";
+ key += this->GetIDEVersion();
+ return key;
+}
+
+//----------------------------------------------------------------------------
void cmGlobalVisualStudioGenerator::Generate()
{
// Add a special target that depends on ALL projects for easy build