mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
VS 2017 and above come with a Visual Studio Installer tool that tracks four-component Visual Studio version numbers. We already detect the VS version number because it is needed to make some generation decisions. Provide the number to projects in a `CMAKE_VS_VERSION_BUILD_NUMBER` variable so they can use it similarly. Fixes: #24230
15 lines
393 B
ReStructuredText
15 lines
393 B
ReStructuredText
CMAKE_VS_VERSION_BUILD_NUMBER
|
|
-----------------------------
|
|
|
|
.. versionadded:: 3.26
|
|
|
|
Visual Studio version.
|
|
|
|
:ref:`Visual Studio Generators` for VS 2017 and above set this
|
|
variable to the Visual Studio version build number in the format
|
|
``<major>.<minor>.<date>.<build>``.
|
|
|
|
.. include:: CMAKE_VS_VERSION_BUILD_NUMBER_COMPONENTS.txt
|
|
|
|
See also the :variable:`CMAKE_GENERATOR_INSTANCE` variable.
|