diff options
author | Brad King <brad.king@kitware.com> | 2019-01-09 16:21:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-10 12:51:47 (GMT) |
commit | d07f453f39b477d687dd87aad2e1cd766598b434 (patch) | |
tree | 47513af9e917f5c23465c4ee62e39865c85dfe24 /Source/cmGlobalVisualStudio10Generator.cxx | |
parent | 757737075a3f998c9ecc93f5c467dabe4b005fee (diff) | |
download | CMake-d07f453f39b477d687dd87aad2e1cd766598b434.zip CMake-d07f453f39b477d687dd87aad2e1cd766598b434.tar.gz CMake-d07f453f39b477d687dd87aad2e1cd766598b434.tar.bz2 |
VS: Convert GetToolsVersion to non-virtual table lookup
Diffstat (limited to 'Source/cmGlobalVisualStudio10Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio10Generator.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx index c9c6938..6be1e23 100644 --- a/Source/cmGlobalVisualStudio10Generator.cxx +++ b/Source/cmGlobalVisualStudio10Generator.cxx @@ -1024,6 +1024,27 @@ std::string cmGlobalVisualStudio10Generator::Encoding() return "utf-8"; } +const char* cmGlobalVisualStudio10Generator::GetToolsVersion() const +{ + switch (this->Version) { + case cmGlobalVisualStudioGenerator::VS9: + case cmGlobalVisualStudioGenerator::VS10: + case cmGlobalVisualStudioGenerator::VS11: + return "4.0"; + + // in Visual Studio 2013 they detached the MSBuild tools version + // from the .Net Framework version and instead made it have it's own + // version number + case cmGlobalVisualStudioGenerator::VS12: + return "12.0"; + case cmGlobalVisualStudioGenerator::VS14: + return "14.0"; + case cmGlobalVisualStudioGenerator::VS15: + return "15.0"; + } + return ""; +} + bool cmGlobalVisualStudio10Generator::IsNsightTegra() const { return !this->NsightTegraVersion.empty(); |