Visual Studio 12 2013.rst 1.9 KB

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