summaryrefslogtreecommitdiff
path: root/Modules/CompilerId
diff options
context:
space:
mode:
authorBasil Fierz <basil.fierz@hotmail.com>2018-05-19 13:23:21 +0200
committerBrad King <brad.king@kitware.com>2018-05-29 10:12:59 -0400
commit5f1316841944198037d6463d3ddd12efcfae45b3 (patch)
tree3a58c25a578caa6813fa66efcc18eac968991368 /Modules/CompilerId
parenta543a233a280f23e72ce5ff7d7a00239bd8634fb (diff)
downloadcmake-5f1316841944198037d6463d3ddd12efcfae45b3.tar.gz
VS: Add option to select the version of the toolset used by VS 2017
Add new `version=` parameter in the toolset setting to select the version. Add variable `CMAKE_VS_PLATFORM_TOOLSET_VERSION` to hold the version, if one is set (blank indicates default). Fixes: #17549
Diffstat (limited to 'Modules/CompilerId')
-rw-r--r--Modules/CompilerId/VS-10.vcxproj.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CompilerId/VS-10.vcxproj.in b/Modules/CompilerId/VS-10.vcxproj.in
index 6b9b361cc0..32c4ffcc44 100644
--- a/Modules/CompilerId/VS-10.vcxproj.in
+++ b/Modules/CompilerId/VS-10.vcxproj.in
@@ -15,6 +15,7 @@
@id_WindowsTargetPlatformVersion@
@id_WindowsSDKDesktopARMSupport@
</PropertyGroup>
+ @id_toolset_version_props@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup>
@id_PreferredToolArchitecture@