mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 08:51:52 +08:00
VS: Update Visual Studio 17 2022 generator for Preview 2
In particular, update to toolset `v143`. Fixes: #22339
This commit is contained in:
@@ -7,7 +7,7 @@ Generates Visual Studio 17 (VS 2022) project files.
|
|||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
This is experimental and based on "Visual Studio 2022 Preview 1.1".
|
This is experimental and based on "Visual Studio 2022 Preview 2".
|
||||||
As of this version of CMake, VS 2022 has not been released.
|
As of this version of CMake, VS 2022 has not been released.
|
||||||
|
|
||||||
Project Types
|
Project Types
|
||||||
@@ -51,7 +51,7 @@ name (architecture). For example:
|
|||||||
Toolset Selection
|
Toolset Selection
|
||||||
^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
The ``v142`` toolset that comes with VS 17 2022 Preview 1.1 is selected by
|
The ``v143`` toolset that comes with VS 17 2022 Preview 2 is selected by
|
||||||
default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
|
default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
|
||||||
via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
|
via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ Generators
|
|||||||
----------
|
----------
|
||||||
|
|
||||||
* The :generator:`Visual Studio 17 2022` generator was added. This is
|
* The :generator:`Visual Studio 17 2022` generator was added. This is
|
||||||
experimental and based on "Visual Studio 2022 Preview 1.1" because this
|
experimental and based on "Visual Studio 2022 Preview 2" because this
|
||||||
version of VS has not been released.
|
version of VS has not been released.
|
||||||
|
|
||||||
* The :ref:`Makefile Generators` and the :generator:`Ninja` generator
|
* The :ref:`Makefile Generators` and the :generator:`Ninja` generator
|
||||||
@@ -293,3 +293,14 @@ Other Changes
|
|||||||
`cmake.org <https://cmake.org/download/>`_ now support
|
`cmake.org <https://cmake.org/download/>`_ now support
|
||||||
``liblzma`` multi-threading. See the :variable:`CPACK_THREADS` and
|
``liblzma`` multi-threading. See the :variable:`CPACK_THREADS` and
|
||||||
:variable:`CPACK_ARCHIVE_THREADS` variables.
|
:variable:`CPACK_ARCHIVE_THREADS` variables.
|
||||||
|
|
||||||
|
Updates
|
||||||
|
=======
|
||||||
|
|
||||||
|
Changes made since CMake 3.21.0 include the following.
|
||||||
|
|
||||||
|
3.21.1
|
||||||
|
------
|
||||||
|
|
||||||
|
* The :generator:`Visual Studio 17 2022` generator is now based on
|
||||||
|
"Visual Studio 2022 Preview 2". Previously it was based on "Preview 1.1".
|
||||||
|
@@ -19,8 +19,6 @@ Known version numbers are::
|
|||||||
1900 = VS 14.0 (v140 toolset)
|
1900 = VS 14.0 (v140 toolset)
|
||||||
1910-1919 = VS 15.0 (v141 toolset)
|
1910-1919 = VS 15.0 (v141 toolset)
|
||||||
1920-1929 = VS 16.0 (v142 toolset)
|
1920-1929 = VS 16.0 (v142 toolset)
|
||||||
|
|
||||||
..
|
|
||||||
1930-1939 = VS 17.0 (v143 toolset)
|
1930-1939 = VS 17.0 (v143 toolset)
|
||||||
|
|
||||||
See also the :variable:`CMAKE_<LANG>_COMPILER_VERSION` and
|
See also the :variable:`CMAKE_<LANG>_COMPILER_VERSION` and
|
||||||
|
@@ -104,8 +104,7 @@ static const char* VSVersionToToolset(
|
|||||||
case cmGlobalVisualStudioGenerator::VS16:
|
case cmGlobalVisualStudioGenerator::VS16:
|
||||||
return "v142";
|
return "v142";
|
||||||
case cmGlobalVisualStudioGenerator::VS17:
|
case cmGlobalVisualStudioGenerator::VS17:
|
||||||
// FIXME: VS 2022 Preview 1 uses v142. Will it be v143 later?
|
return "v143";
|
||||||
return "v142";
|
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user