Visual Studio 11 2012.rst 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Visual Studio 11 2012
  2. ---------------------
  3. Generates Visual Studio 11 (VS 2012) project files.
  4. For compatibility with CMake versions prior to 3.0, one may specify this
  5. generator using the name "Visual Studio 11" without the year component.
  6. Project Types
  7. ^^^^^^^^^^^^^
  8. Only Visual C++ and C# projects may be generated. Other types of
  9. projects (JavaScript, Database, Website, 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 11 2012" -A Win32``
  18. * ``cmake -G "Visual Studio 11 2012" -A x64``
  19. * ``cmake -G "Visual Studio 11 2012" -A ARM``
  20. * ``cmake -G "Visual Studio 11 2012" -A <WinCE-SDK>``
  21. (Specify a target platform matching a Windows CE SDK name.)
  22. For compatibility with CMake versions prior to 3.1, one may specify
  23. a target platform name optionally at the end of the generator name.
  24. This is supported only for:
  25. ``Visual Studio 11 2012 Win64``
  26. Specify target platform ``x64``.
  27. ``Visual Studio 11 2012 ARM``
  28. Specify target platform ``ARM``.
  29. ``Visual Studio 11 2012 <WinCE-SDK>``
  30. Specify target platform matching a Windows CE SDK name.
  31. Toolset Selection
  32. ^^^^^^^^^^^^^^^^^
  33. The ``v110`` toolset that comes with Visual Studio 11 2012 is selected by
  34. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  35. via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.