Visual Studio 11 2012.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 (and Fortran with
  9. Intel compiler integration). Other types of projects (JavaScript,
  10. Database, Website, 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 :option:`cmake -A` option, to specify a target platform
  17. name (architecture). For example:
  18. * ``cmake -G "Visual Studio 11 2012" -A Win32``
  19. * ``cmake -G "Visual Studio 11 2012" -A x64``
  20. * ``cmake -G "Visual Studio 11 2012" -A ARM``
  21. * ``cmake -G "Visual Studio 11 2012" -A <WinCE-SDK>``
  22. (Specify a target platform matching a Windows CE SDK name.)
  23. For compatibility with CMake versions prior to 3.1, one may specify
  24. a target platform name optionally at the end of the generator name.
  25. This is supported only for:
  26. ``Visual Studio 11 2012 Win64``
  27. Specify target platform ``x64``.
  28. ``Visual Studio 11 2012 ARM``
  29. Specify target platform ``ARM``.
  30. ``Visual Studio 11 2012 <WinCE-SDK>``
  31. Specify target platform matching a Windows CE SDK name.
  32. Toolset Selection
  33. ^^^^^^^^^^^^^^^^^
  34. The ``v110`` toolset that comes with Visual Studio 11 2012 is selected by
  35. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  36. via the :option:`cmake -T` option, to specify another toolset.