6 Generates Visual Studio 16 (VS 2019) 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 2019 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 16 2019" -A Win32``
32 * ``cmake -G "Visual Studio 16 2019" -A x64``
33 * ``cmake -G "Visual Studio 16 2019" -A ARM``
34 * ``cmake -G "Visual Studio 16 2019" -A ARM64``
39 The ``v142`` toolset that comes with Visual Studio 16 2019 is selected by
40 default. 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