d704ab271e8ff9de1aca943b7b0fce8a210cd5e2
[platform/upstream/cmake.git] / Help / generator / Visual Studio 14 2015.rst
1 Visual Studio 14 2015
2 ---------------------
3
4 .. versionadded:: 3.1
5
6 Generates Visual Studio 14 (VS 2015) project files.
7
8 Project Types
9 ^^^^^^^^^^^^^
10
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.
14
15 Platform Selection
16 ^^^^^^^^^^^^^^^^^^
17
18 The default target platform name (architecture) is ``Win32``.
19
20 The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
21 via the :manual:`cmake(1)` ``-A`` option, to specify a target platform
22 name (architecture).  For example:
23
24 * ``cmake -G "Visual Studio 14 2015" -A Win32``
25 * ``cmake -G "Visual Studio 14 2015" -A x64``
26 * ``cmake -G "Visual Studio 14 2015" -A ARM``
27
28 For compatibility with CMake versions prior to 3.1, one may specify
29 a target platform name optionally at the end of the generator name.
30 This is supported only for:
31
32 ``Visual Studio 14 2015 Win64``
33   Specify target platform ``x64``.
34
35 ``Visual Studio 14 2015 ARM``
36   Specify target platform ``ARM``.
37
38 Toolset Selection
39 ^^^^^^^^^^^^^^^^^
40
41 The ``v140`` toolset that comes with Visual Studio 14 2015 is selected by
42 default.  The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
43 via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
44
45 .. |VS_TOOLSET_HOST_ARCH_DEFAULT| replace::
46    By default this generator uses the 32-bit variant even on a 64-bit host.
47
48 .. include:: VS_TOOLSET_HOST_ARCH_LEGACY.txt
49
50 .. _`Windows 10 SDK Maximum Version for VS 2015`:
51
52 Windows 10 SDK Maximum Version for VS 2015
53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
55 .. versionadded:: 3.19
56
57 Microsoft stated in a "Windows 10 October 2018 Update" blog post that Windows
58 10 SDK versions (15063, 16299, 17134, 17763) are not supported by VS 2015 and
59 are only supported by VS 2017 and later.  Therefore by default CMake
60 automatically ignores Windows 10 SDKs beyond ``10.0.14393.0``.
61
62 However, there are other recommendations for certain driver/Win32 builds that
63 indicate otherwise.  A user can override this behavior by either setting the
64 :variable:`CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM` to a false value
65 or setting the :variable:`CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM` to
66 the string value of the required maximum (e.g. ``10.0.15063.0``).