# CMAKE\_VS\_PLATFORM\_TOOLSET\_VERSION contains only first two components of version

**URL:** https://discourse.cmake.org/t/cmake-vs-platform-toolset-version-contains-only-first-two-components-of-version/4400
**Category:** Usage
**Created:** [November 2, 2021, 1:11am UTC](https://discourse.cmake.org/t/cmake-vs-platform-toolset-version-contains-only-first-two-components-of-version/4400 "2021-11-02T01:11:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vmware-jabarrett](https://discourse.cmake.org/user_avatar/discourse.cmake.org/vmware-jabarrett/32/1048_2.png) [@vmware-jabarrett](https://discourse.cmake.org/u/vmware-jabarrett)
#### Post date: [November 2, 2021, 1:11am UTC](https://discourse.cmake.org/t/cmake-vs-platform-toolset-version-contains-only-first-two-components-of-version/4400/1 "2021-11-02T01:11:45Z")

</div>

When setting `cmake ... -Tv142,version=14.20.27508,host=x64` the `CMAKE_VS_PLATFORM_TOOLSET_VERSION` variable is only populated with the first two components of the version, “14.20”. I need to pass the entire version, “14.20.27508” to `msbuild` for a legacy external project. Is there a way to get the full version other than manually parsing the `CMAKE_GENERATOR_TOOLSET` for the `version` key?
