summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-11-20 11:18:43 (GMT)
committerBrad King <brad.king@kitware.com>2012-11-26 14:33:25 (GMT)
commit332dc09d0de3b427eac8a36c3b0c1339daf7179c (patch)
tree77c87dee7792592f041bb9473071caa901b07869 /Source/cmGlobalVisualStudioGenerator.cxx
parentd41d4d3d61275414958831bc3d5a45f74b1f2339 (diff)
downloadCMake-332dc09d0de3b427eac8a36c3b0c1339daf7179c.zip
CMake-332dc09d0de3b427eac8a36c3b0c1339daf7179c.tar.gz
CMake-332dc09d0de3b427eac8a36c3b0c1339daf7179c.tar.bz2
VS: Add static method to get the base of the registry
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index a517351..67d6f80 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -33,9 +33,16 @@ cmGlobalVisualStudioGenerator::~cmGlobalVisualStudioGenerator()
//----------------------------------------------------------------------------
std::string cmGlobalVisualStudioGenerator::GetRegistryBase()
{
+ return cmGlobalVisualStudioGenerator::GetRegistryBase(
+ this->GetIDEVersion());
+}
+
+//----------------------------------------------------------------------------
+std::string cmGlobalVisualStudioGenerator::GetRegistryBase(
+ const char* version)
+{
std::string key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\";
- key += this->GetIDEVersion();
- return key;
+ return key + version;
}
//----------------------------------------------------------------------------