Visual Studio 14 2015.rst 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Visual Studio 14 2015
  2. ---------------------
  3. Generates Visual Studio 14 (VS 2015) project files.
  4. Project Types
  5. ^^^^^^^^^^^^^
  6. Only Visual C++ and C# projects may be generated. Other types of
  7. projects (JavaScript, Powershell, Python, etc.) are not supported.
  8. Platform Selection
  9. ^^^^^^^^^^^^^^^^^^
  10. The default target platform name (architecture) is ``Win32``.
  11. The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
  12. via the :manual:`cmake(1)` ``-A`` option, to specify a target platform
  13. name (architecture). For example:
  14. * ``cmake -G "Visual Studio 14 2015" -A Win32``
  15. * ``cmake -G "Visual Studio 14 2015" -A x64``
  16. * ``cmake -G "Visual Studio 14 2015" -A ARM``
  17. For compatibility with CMake versions prior to 3.1, one may specify
  18. a target platform name optionally at the end of the generator name.
  19. This is supported only for:
  20. ``Visual Studio 14 2015 Win64``
  21. Specify target platform ``x64``.
  22. ``Visual Studio 14 2015 ARM``
  23. Specify target platform ``ARM``.
  24. Toolset Selection
  25. ^^^^^^^^^^^^^^^^^
  26. The ``v140`` toolset that comes with Visual Studio 14 2015 is selected by
  27. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  28. via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.
  29. .. |VS_TOOLSET_HOST_ARCH_DEFAULT| replace::
  30. By default this generator uses the 32-bit variant even on a 64-bit host.
  31. .. include:: VS_TOOLSET_HOST_ARCH.txt