6 Generates Visual Studio 17 (VS 2022) project files.
11 Only Visual C++ and C# projects may be generated (and Fortran with
12 Intel compiler integration). Other types of projects (JavaScript,
13 Powershell, Python, etc.) are not supported.
18 VS 2022 supports multiple installations on the same machine. The
19 :variable:`CMAKE_GENERATOR_INSTANCE` variable may be used to select one.
24 The default target platform name (architecture) is that of the host
25 and is provided in the :variable:`CMAKE_VS_PLATFORM_NAME_DEFAULT` variable.
27 The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
28 via the :option:`cmake -A` option, to specify a target platform
29 name (architecture). For example:
31 * ``cmake -G "Visual Studio 17 2022" -A Win32``
32 * ``cmake -G "Visual Studio 17 2022" -A x64``
33 * ``cmake -G "Visual Studio 17 2022" -A ARM``
34 * ``cmake -G "Visual Studio 17 2022" -A ARM64``
39 The ``v143`` toolset that comes with VS 17 2022 is selected by default.
40 The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
41 via the :option:`cmake -T` option, to specify another toolset.
43 .. |VS_TOOLSET_HOST_ARCH_DEFAULT| replace::
44 By default this generator uses the 64-bit variant on x64 hosts and
45 the 32-bit variant otherwise.
47 .. include:: VS_TOOLSET_HOST_ARCH.txt