Visual Studio 12 2013.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 (and Fortran with
  9. Intel compiler integration). Other types of projects (JavaScript,
  10. Powershell, Python, etc.) are not supported.
  11. Platform Selection
  12. ^^^^^^^^^^^^^^^^^^
  13. The default target platform name (architecture) is ``Win32``.
  14. .. versionadded:: 3.1
  15. The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
  16. via the :manual:`cmake(1)` ``-A`` option, to specify a target platform
  17. name (architecture). For example:
  18. * ``cmake -G "Visual Studio 12 2013" -A Win32``
  19. * ``cmake -G "Visual Studio 12 2013" -A x64``
  20. * ``cmake -G "Visual Studio 12 2013" -A ARM``
  21. For compatibility with CMake versions prior to 3.1, one may specify
  22. a target platform name optionally at the end of the generator name.
  23. This is supported only for:
  24. ``Visual Studio 12 2013 Win64``
  25. Specify target platform ``x64``.
  26. ``Visual Studio 12 2013 ARM``
  27. Specify target platform ``ARM``.
  28. Toolset Selection
  29. ^^^^^^^^^^^^^^^^^
  30. The ``v120`` toolset that comes with Visual Studio 12 2013 is selected by
  31. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  32. via the :manual:`cmake(1)` ``-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