Visual Studio 14 2015.rst 2.3 KB

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