Visual Studio 12 2013.rst 1.5 KB

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