mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +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::
|
||||
|
||||
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.
|
||||
|
||||
Project Types
|
||||
@@ -51,7 +51,7 @@ name (architecture). For example:
|
||||
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
|
||||
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
|
||||
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.
|
||||
|
||||
* The :ref:`Makefile Generators` and the :generator:`Ninja` generator
|
||||
@@ -293,3 +293,14 @@ Other Changes
|
||||
`cmake.org <https://cmake.org/download/>`_ now support
|
||||
``liblzma`` multi-threading. See the :variable:`CPACK_THREADS` and
|
||||
: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)
|
||||
1910-1919 = VS 15.0 (v141 toolset)
|
||||
1920-1929 = VS 16.0 (v142 toolset)
|
||||
|
||||
..
|
||||
1930-1939 = VS 17.0 (v143 toolset)
|
||||
|
||||
See also the :variable:`CMAKE_<LANG>_COMPILER_VERSION` and
|
||||
|
@@ -104,8 +104,7 @@ static const char* VSVersionToToolset(
|
||||
case cmGlobalVisualStudioGenerator::VS16:
|
||||
return "v142";
|
||||
case cmGlobalVisualStudioGenerator::VS17:
|
||||
// FIXME: VS 2022 Preview 1 uses v142. Will it be v143 later?
|
||||
return "v142";
|
||||
return "v143";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
Reference in New Issue
Block a user