Visual Studio 14 2015.rst 2.2 KB

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