Visual Studio 14 2015.rst 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Visual Studio 14 2015
  2. ---------------------
  3. .. deprecated:: 4.2
  4. This generator is deprecated and will be removed in a future version
  5. of CMake. It will still be possible to build with VS 14 2015 tools
  6. using the :generator:`Visual Studio 15 2017` (or above) generator
  7. with :variable:`CMAKE_GENERATOR_TOOLSET` set to ``v140``, or by
  8. using the :generator:`NMake Makefiles` generator.
  9. .. versionadded:: 3.1
  10. Generates Visual Studio 14 (VS 2015) project files.
  11. Project Types
  12. ^^^^^^^^^^^^^
  13. Only Visual C++ and C# projects may be generated (and Fortran with
  14. Intel compiler integration). Other types of projects (JavaScript,
  15. Powershell, Python, etc.) are not supported.
  16. Platform Selection
  17. ^^^^^^^^^^^^^^^^^^
  18. The default target platform name (architecture) is ``Win32``.
  19. The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
  20. via the :option:`cmake -A` option, to specify a target platform
  21. name (architecture). For example:
  22. * ``cmake -G "Visual Studio 14 2015" -A Win32``
  23. * ``cmake -G "Visual Studio 14 2015" -A x64``
  24. * ``cmake -G "Visual Studio 14 2015" -A ARM``
  25. .. versionchanged:: 4.0
  26. Previously, for compatibility with CMake versions prior to 3.1,
  27. one could specify a target platform name optionally at the
  28. end of the generator name. This has been removed.
  29. This was supported only for:
  30. ``Visual Studio 14 2015 Win64``
  31. Specify target platform ``x64``.
  32. ``Visual Studio 14 2015 ARM``
  33. Specify target platform ``ARM``.
  34. Toolset Selection
  35. ^^^^^^^^^^^^^^^^^
  36. The ``v140`` toolset that comes with Visual Studio 14 2015 is selected by
  37. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  38. via the :option:`cmake -T` option, to specify another toolset.
  39. .. |VS_TOOLSET_HOST_ARCH_DEFAULT| replace::
  40. By default this generator uses the 32-bit variant even on a 64-bit host.
  41. .. include:: include/VS_TOOLSET_HOST_ARCH_LEGACY.rst
  42. .. _`Windows 10 SDK Maximum Version for VS 2015`:
  43. Windows 10 SDK Maximum Version for VS 2015
  44. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45. .. versionadded:: 3.19
  46. Microsoft stated in a "Windows 10 October 2018 Update" blog post that Windows
  47. 10 SDK versions (15063, 16299, 17134, 17763) are not supported by VS 2015 and
  48. are only supported by VS 2017 and later. Therefore by default CMake
  49. automatically ignores Windows 10 SDKs beyond ``10.0.14393.0``.
  50. However, there are other recommendations for certain driver/Win32 builds that
  51. indicate otherwise. A user can override this behavior by either setting the
  52. :variable:`CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM` to a false value
  53. or setting the :variable:`CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM` to
  54. the string value of the required maximum (e.g. ``10.0.15063.0``).